From 0881aea6636e05321edb1721d0140adf3463f479 Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Thu, 29 Jun 2023 08:43:49 +0000 Subject: [PATCH] update(ci): integrate tests and ci workflow for release branch and tags Signed-off-by: Jason Dellaluce --- .github/workflows/ci.yml | 4 +++- .github/workflows/release.yaml | 21 ++++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a2e2446..a1a39156 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,9 @@ name: CI Build on: pull_request: - branches: [master] + branches: + - master + - release/* workflow_dispatch: # Checks if any concurrent jobs under the same pull request or branch are being executed diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7a7a7dc3..f427b6ce 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -65,9 +65,28 @@ jobs: arch: aarch64 version: ${{ github.event.release.tag_name }} secrets: inherit + + test-packages: + needs: [release-settings, build-packages] + uses: ./.github/workflows/reusable_test_packages.yaml + strategy: + fail-fast: false + matrix: + static: ["static", ""] + with: + arch: x86_64 + static: ${{ matrix.static != '' && true || false }} + version: ${{ github.event.release.tag_name }} + + test-packages-arm64: + needs: [release-settings, build-packages-arm64] + uses: ./.github/workflows/reusable_test_packages.yaml + with: + arch: aarch64 + version: ${{ github.event.release.tag_name }} publish-packages: - needs: [release-settings, build-packages, build-packages-arm64] + needs: [release-settings, test-packages, test-packages-arm64] uses: ./.github/workflows/reusable_publish_packages.yaml with: bucket_suffix: ${{ needs.release-settings.outputs.bucket_suffix }}