Skip to content

Commit

Permalink
Update Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bitPogo committed Feb 21, 2024
1 parent f329fe8 commit 42deba7
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 10 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,33 @@ jobs:
group: build-macos
cancel-in-progress: true

coding-conventions:
needs: build-linux
uses: bitpogo/workflows/.github/workflows/shared-coding-conventions-linux.yml@main
with:
cache-reports: false
concurrency:
group: coding-conventions-${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

check:
needs: [ build-macos, build-linux ]
uses: bitpogo/workflows/.github/workflows/shared-test-kmp.yml@main
with:
platforms: "['ios', 'macos', 'tvos', 'watchos', 'linux-all', 'mingw']"
concurrency:
group: check
cancel-in-progress: true

docs:
needs: check
uses: bitpogo/workflows/.github/workflows/shared-mkdocs-release.yml@main
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
concurrency:
group: docs
cancel-in-progress: true
github-token: ${{ secrets.GITHUB_TOKEN }}

publish:
needs: [check, docs]
needs: docs
uses: bitpogo/workflows/.github/workflows/shared-publish-release.yml@main
secrets:
upload-username: ${{ secrets.PACKAGE_REGISTRY_UPLOAD_USERNAME }}
Expand Down
29 changes: 23 additions & 6 deletions .github/workflows/ci-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,43 @@ jobs:
group: build-macos
cancel-in-progress: true

coding-conventions:
needs: build-linux
uses: bitpogo/workflows/.github/workflows/shared-coding-conventions-linux.yml@main
with:
cache-reports: false
concurrency:
group: coding-conventions
cancel-in-progress: true

check:
needs: [ build-macos, build-linux ]
uses: bitpogo/workflows/.github/workflows/shared-test-kmp.yml@main
with:
platforms: "['ios', 'macos', 'tvos', 'watchos', 'linux-all', 'mingw']"
platforms: "['ios', 'macos', 'tvos', 'watchos', 'linux-js', 'mingw']"
concurrency:
group: check
cancel-in-progress: true

coverage:
needs: coding-conventions
uses: bitpogo/workflows/.github/workflows/shared-coverage-linux.yml@main
with:
verify-kmp: true
restore-cached-reports: true
concurrency:
group: coverage
cancel-in-progress: true

docs:
needs: check
needs: [ coverage, check ]
uses: bitpogo/workflows/.github/workflows/shared-mkdocs-snapshot.yml@main
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
concurrency:
group: docs
cancel-in-progress: true
github-token: ${{ secrets.GITHUB_TOKEN }}

publish:
needs: [check, docs]
needs: [ coverage, check ]
uses: bitpogo/workflows/.github/workflows/shared-publish-snapshot.yml@main
secrets:
upload-username: ${{ secrets.PACKAGE_REGISTRY_UPLOAD_USERNAME }}
Expand Down

0 comments on commit 42deba7

Please sign in to comment.