From 369aa2f28be074d4111f6caa3fa783f3b8ea9b92 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 17 Sep 2024 09:20:53 +0000 Subject: [PATCH 1/2] chore(deps): update kubewarden/github-actions action to v3.3.5 --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db56d83..dc2e9a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.3.4 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.3.5 - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 @@ -39,7 +39,7 @@ jobs: make e2e-tests - name: Release - uses: kubewarden/github-actions/policy-release@v3.3.4 + uses: kubewarden/github-actions/policy-release@v3.3.5 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} oci-target: ghcr.io/${{ github.repository_owner }}/tests/raw-validation-wasi-policy diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 23aee92..94e5598 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: with: bats-version: 1.11.0 - name: Install kwctl - uses: kubewarden/github-actions/kwctl-installer@v3.3.4 + uses: kubewarden/github-actions/kwctl-installer@v3.3.5 - run: make e2e-tests golangci: From b26baf2243dab3794e9a84ae96a1d5368d6200b3 Mon Sep 17 00:00:00 2001 From: Flavio Castelli Date: Tue, 17 Sep 2024 11:24:13 +0200 Subject: [PATCH 2/2] test: use centralized GH actions Signed-off-by: Flavio Castelli --- .github/workflows/release.yml | 30 ++++++---------------- .github/workflows/test.yml | 47 ++++------------------------------- 2 files changed, 12 insertions(+), 65 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc2e9a7..cba879e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,12 +10,12 @@ name: Release policy jobs: test: name: run tests and linters - uses: ./.github/workflows/test.yml + uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go-wasi.yml@v3.3.5 + with: + artifacthub: false release: - runs-on: ubuntu-latest needs: test - permissions: # Required to create GH releases contents: write @@ -24,23 +24,7 @@ jobs: # Required by cosign keyless signing id-token: write - steps: - - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.3.5 - - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 - with: - go-version: "1.21" - - - run: make annotated-policy.wasm - - name: Run e2e tests - run: | - make e2e-tests - - - name: Release - uses: kubewarden/github-actions/policy-release@v3.3.5 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - oci-target: ghcr.io/${{ github.repository_owner }}/tests/raw-validation-wasi-policy - artifacthub: false + uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-go-wasi.yml@v3.3.5 + with: + oci-target: ghcr.io/${{ github.repository_owner }}/tests/raw-validation-wasi-policy + artifacthub: false diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 94e5598..bcecd8e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,45 +1,8 @@ -on: - push: - pull_request: - workflow_call: - +on: [push, pull_request] name: Continuous integration jobs: test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 - with: - go-version: "1.21" - - run: make test - - e2e-test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 - with: - go-version: "1.21" - - name: Setup BATS - uses: mig4/setup-bats@af9a00deb21b5d795cabfeaa8d9060410377686d # v1.2.0 - with: - bats-version: 1.11.0 - - name: Install kwctl - uses: kubewarden/github-actions/kwctl-installer@v3.3.5 - - run: make e2e-tests - - golangci: - name: Golangci-lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 - with: - go-version: "1.21" - - name: golangci-lint - uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0 - with: - version: v1.53.3 + name: run tests and linters + uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go-wasi.yml@v3.3.5 + with: + artifacthub: false