From bd58e46271d4c658d79d8ec81b8bf4690c33e2ab Mon Sep 17 00:00:00 2001 From: Matthias Geisler Date: Thu, 22 Feb 2024 00:40:51 +0100 Subject: [PATCH] Update Workflows --- .github/workflows/ci-release.yml | 20 +++++++++++++++++++- .github/workflows/ci-snapshot.yml | 25 ++++++++++++++++++++++--- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index d0629b8a..649f03e7 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -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 @@ -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 }} diff --git a/.github/workflows/ci-snapshot.yml b/.github/workflows/ci-snapshot.yml index 8a33c04f..75502655 100644 --- a/.github/workflows/ci-snapshot.yml +++ b/.github/workflows/ci-snapshot.yml @@ -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 }} @@ -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 }}