diff --git a/.github/workflows/func-tests.yaml b/.github/workflows/func-tests.yaml index 22606df..9ddbb06 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: @@ -23,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 f7df660..cdd5ee2 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 }} @@ -40,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 @@ -81,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 @@ -89,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 9f81326..3a52b0c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -6,13 +6,14 @@ on: pull_request: branches: ['main'] workflow_dispatch: + workflow_call: jobs: go-tests: runs-on: ubuntu-latest steps: - name: Repo Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Go uses: actions/setup-go@v4 @@ -35,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