Skip to content

Commit

Permalink
Merge pull request #1 from dongsug-song/master
Browse files Browse the repository at this point in the history
integration test 1027
  • Loading branch information
dongsug-song authored Oct 27, 2020
2 parents 41e80e3 + bd56af1 commit 32176e2
Show file tree
Hide file tree
Showing 4,550 changed files with 431,084 additions and 829,794 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
92 changes: 0 additions & 92 deletions .github/CODEOWNERS

This file was deleted.

29 changes: 29 additions & 0 deletions .github/branch-metadata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
master:
api-level: API8
labels: [ API8 ]
tizen-branch: tizen
version-prefix: 8.0.0

API7:
api-level: API7
labels: [ API7 ]
tizen-branch: tizen_5.5
version-prefix: 7.0.0

API6:
api-level: API6
labels: [ API6 ]
tizen-branch: tizen_5.5_tv
version-prefix: 6.0.0

API5:
api-level: API5
labels: [ API5 ]
tizen-branch: tizen_5.0
version-prefix: 5.0.0

API4:
api-level: API4
labels: [ API4 ]
tizen-branch: tizen_4.0
version-prefix: 4.0.1
50 changes: 50 additions & 0 deletions .github/workflows/build-branches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build Branches

on:
push:
branches:
- master
- API*

paths:
- 'build/**'
- 'internals/**'
- 'src/**'
- 'tools/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.402

- name: Build
run: ./build.sh full

- name: Checkout APITool
uses: actions/checkout@v2
with:
repository: TizenAPI/APITool
path: .apitool

- name: Extract API
run: |
dotnet run -p .apitool/ \
-- print --format=json --include-hidden \
-o Artifacts/api.json Artifacts/bin/public/
- name: Upload API Spec to S3
uses: TizenAPI/tizenfx-build-actions/s3-upload@master
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
with:
file: Artifacts/api.json
region: ap-northeast-2
bucket: tizenfx-api-specs
key: ${{ github.sha }}.json
125 changes: 125 additions & 0 deletions .github/workflows/build-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: "Build Pull Request"

on:
pull_request:
branches:
- master
- API*

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.402

- name: Get Changed Files
uses: lots0logs/[email protected]
id: getChangedFiles
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
id: build
uses: TizenAPI/tizenfx-build-actions/problem-filter@master
with:
run: ./build.sh full /p:BuildWithAnalyzer=True -consoleloggerparameters:NoSummary
files: ${{ steps.getChangedFiles.outputs.all }}

- name: Save Error Report
if: ${{ failure() && steps.build.outputs.errors }}
env:
BUILD_ERRORS: ${{ steps.build.outputs.errors }}
run: |
mkdir Artifacts
echo $BUILD_ERRORS > Artifacts/errors.json
- name: Pack
run: ./build.sh pack

- name: Checkout APITool
uses: actions/checkout@v2
with:
repository: TizenAPI/APITool
path: .apitool

- name: Extract API Spec
run: |
dotnet run -p .apitool/ \
-- print --format=json --include-hidden \
-o Artifacts/api.json Artifacts/bin/public/
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: reports
if-no-files-found: ignore
path: Artifacts/*.json

check-api:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x

- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: reports
path: Artifacts

- name: Download Base API Spec
id: base-spec
uses: TizenAPI/tizenfx-build-actions/s3-download-public@master
with:
region: ap-northeast-2
bucket: tizenfx-api-specs
key: ${{ github.event.pull_request.base.sha }}.json
path: Artifacts/base-api.json

- uses: actions/checkout@v2
if: ${{ steps.base-spec.outputs.code != 200 }}
with:
ref: ${{ github.event.pull_request.base.sha }}
path: base

- name: Build Base Branch
if: ${{ steps.base-spec.outputs.code != 200 }}
uses: TizenAPI/tizenfx-build-actions/problem-filter@master
with:
run: ./build.sh full
working-directory: base

- name: Checkout APITool
if: ${{ steps.base-spec.outputs.code != 200 }}
uses: actions/checkout@v2
with:
repository: TizenAPI/APITool
path: .apitool

- name: Extract Base API
if: ${{ steps.base-spec.outputs.code != 200 }}
run: |
dotnet run -p .apitool/ \
-- print --format=json --include-hidden \
-o Artifacts/base-api.json base/Artifacts/bin/public/
- name: Check API Compatibilities
uses: TizenAPI/tizenfx-build-actions/apidb-compare@master
with:
file: Artifacts/api.json
base-file: Artifacts/base-api.json
output: Artifacts/api-comp.json

- uses: actions/upload-artifact@v2
with:
name: reports
path: Artifacts/api-comp.json
33 changes: 33 additions & 0 deletions .github/workflows/check-api-level.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Check API Level"

on:
pull_request_target:
branches:
- master
- API*

jobs:
add-labels:
runs-on: ubuntu-latest
steps:

- name: Get Branch Metadata
uses: TizenAPI/tizenfx-build-actions/branch-metadata@master
id: metadata
with:
ref: ${{ github.base_ref }}

- name: Add Labels
if: ${{ steps.metadata.outputs.data }}
uses: actions/github-script@v2
env:
BRANCH_METADATA: ${{ steps.metadata.outputs.data }}
with:
script: |
var metadata = JSON.parse(process.env.BRANCH_METADATA)
github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: metadata.labels
})
Loading

0 comments on commit 32176e2

Please sign in to comment.