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 bd58e46
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@ 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
Expand All @@ -28,7 +46,7 @@ jobs:
cancel-in-progress: true

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
25 changes: 22 additions & 3 deletions .github/workflows/ci-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,36 @@ 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 }}
Expand All @@ -43,7 +62,7 @@ jobs:
cancel-in-progress: true

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 bd58e46

Please sign in to comment.