From d3726d6275c67167a318e650496a0d232f99e279 Mon Sep 17 00:00:00 2001 From: Sergey Yakovlev Date: Wed, 29 Nov 2023 16:55:32 +0200 Subject: [PATCH 1/2] fix: release workflow --- .github/workflows/func-tests.yaml | 1 + .github/workflows/release.yaml | 6 ++++-- .github/workflows/tests.yaml | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/func-tests.yaml b/.github/workflows/func-tests.yaml index 22606df..1fdfd5d 100644 --- a/.github/workflows/func-tests.yaml +++ b/.github/workflows/func-tests.yaml @@ -6,6 +6,7 @@ on: pull_request: branches: ['main'] workflow_dispatch: + workflow_call: jobs: functional-tests: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f7df660..990dd4d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,12 +8,14 @@ env: artifacts_name: 'building-artifacts' jobs: - tests-and-linters: + tests: uses: ./.github/workflows/tests.yaml + func-tests: + uses: ./.github/workflows/func-tests.yaml prepare: name: Prepare Variables - needs: tests-and-linters + needs: [tests, func-tests] runs-on: ubuntu-latest outputs: release_version: ${{ steps.enver.outputs.release_version }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 9f81326..32eb849 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -6,6 +6,7 @@ on: pull_request: branches: ['main'] workflow_dispatch: + workflow_call: jobs: go-tests: From 7fefe862a8d8b46167bbd962b422fab8a17399d5 Mon Sep 17 00:00:00 2001 From: Sergey Yakovlev Date: Wed, 29 Nov 2023 17:21:44 +0200 Subject: [PATCH 2/2] chore: update actions --- .github/workflows/func-tests.yaml | 2 +- .github/workflows/release.yaml | 6 +++--- .github/workflows/tests.yaml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/func-tests.yaml b/.github/workflows/func-tests.yaml index 1fdfd5d..9ddbb06 100644 --- a/.github/workflows/func-tests.yaml +++ b/.github/workflows/func-tests.yaml @@ -24,7 +24,7 @@ jobs: shell: bash runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: 'Build dkc script' uses: actions/setup-go@v4 with: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 990dd4d..cdd5ee2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -42,7 +42,7 @@ jobs: release_version: ${{needs.prepare.outputs.release_version}} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: 'Setup Go' uses: actions/setup-go@v4 @@ -83,7 +83,7 @@ jobs: release_version: ${{needs.prepare.outputs.release_version}} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Download artifacts uses: actions/download-artifact@v3 @@ -91,7 +91,7 @@ jobs: name: ${{ env.artifacts_name }} - name: Run Changelog CI - uses: saadmk11/changelog-ci@v1.1.1 + uses: saadmk11/changelog-ci@v1.1.2 with: release_version: ${{ env.release_version }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 32eb849..3a52b0c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Repo Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Go uses: actions/setup-go@v4 @@ -36,10 +36,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Nix - uses: cachix/install-nix-action@v20 + uses: cachix/install-nix-action@v22 - name: Run nix flake check run: nix flake check