From 42deba70bb5f7cdd73ea972505f244aa2b9bf558 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 | 24 ++++++++++++++++++++---- .github/workflows/ci-snapshot.yml | 29 +++++++++++++++++++++++------ 2 files changed, 43 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index d0629b8a..efd0ec4a 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -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 }} diff --git a/.github/workflows/ci-snapshot.yml b/.github/workflows/ci-snapshot.yml index 8a33c04f..01036b18 100644 --- a/.github/workflows/ci-snapshot.yml +++ b/.github/workflows/ci-snapshot.yml @@ -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 }}