Skip to content

Commit

Permalink
Merge pull request #40 from kubewarden/renovate/kubewarden-github-act…
Browse files Browse the repository at this point in the history
…ions-3.x

chore(deps): update kubewarden/github-actions action to v3.3.5
  • Loading branch information
flavio authored Sep 17, 2024
2 parents c8974f9 + e2d6683 commit 12e98b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 76 deletions.
34 changes: 4 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ 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

release:
runs-on: ubuntu-latest
needs: test

permissions:
# Required to create GH releases
contents: write
Expand All @@ -24,30 +22,6 @@ jobs:
# Required by cosign keyless signing
id-token: write

steps:
- name: Install dependencies
uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.3.4

- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: "1.21"

# Required to have a version of kwctl that understand Wasi context aware policies
# To be dropped once policy-gh-action-dependencies installs the right version of
# kwctl
- name: Install kwctl
uses: kubewarden/github-actions/kwctl-installer@v3.3.4
with:
KWCTL_VERSION: "v1.10.0-rc2"

- run: make annotated-policy.wasm
- name: Run e2e tests
run: |
make e2e-tests
- name: Release
uses: kubewarden/github-actions/policy-release@v3.3.4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
oci-target: ghcr.io/${{ github.repository_owner }}/tests/go-wasi-context-aware-test-policy
uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-go-wasi.yml@v3.3.5
with:
oci-target: ghcr.io/${{ github.repository_owner }}/tests/go-wasi-context-aware-test-policy
49 changes: 3 additions & 46 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,6 @@
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"
- uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.3.4

# Required to have a version of kwctl that understand Wasi context aware policies
# To be dropped once policy-gh-action-dependencies installs the right version of
# kwctl
- name: Install kwctl
uses: kubewarden/github-actions/kwctl-installer@v3.3.4
with:
KWCTL_VERSION: "v1.10.0-rc2"

- 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.22"
- name: golangci-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
with:
version: v1.60.3
name: run tests and linters
uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go-wasi.yml@v3.3.5

0 comments on commit 12e98b9

Please sign in to comment.