Skip to content

Commit

Permalink
Merge pull request #49 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 75d3314 + 3fa9e64 commit c731226
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 46 deletions.
37 changes: 11 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ on:
name: Release policy

jobs:
release:
runs-on: ubuntu-latest
test:
name: run tests and linters
uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go-wasi.yml@v3.3.5
with:
artifacthub: false

release:
needs: test
permissions:
# Required to create GH releases
contents: write
Expand All @@ -19,27 +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.4
- uses: actions/checkout@v4
with:
# until https://github.com/actions/checkout/pull/579 is released
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.21.1"
- name: Build
run: |
make policy.wasm
- name: Annotate
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 }}/policies/kyverno-dsl
uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-go-wasi.yml@v3.3.5
with:
oci-target: ghcr.io/${{ github.repository_owner }}/policies/kyverno-dsl
artifacthub: false
23 changes: 3 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,6 @@ name: Continuous integration
jobs:
test:
name: run tests and linters
runs-on: ubuntu-latest
steps:
- name: Install dependencies
uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.3.4
- uses: actions/checkout@v4
with:
# until https://github.com/actions/checkout/pull/579 is released
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.21.1"
- name: Build
run: |
make policy.wasm
- name: Annotate
run: |
make annotated-policy.wasm
- name: Run e2e tests
run: |
make e2e-tests
uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go-wasi.yml@v3.3.5
with:
artifacthub: false
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ clean:
go clean
rm -f policy.wasm annotated-policy.wasm artifacthub-pkg.yml

test:
echo "No tests implemented - refer to e2e-tests"

.PHONY: e2e-tests
e2e-tests: annotated-policy.wasm
bats e2e.bats

0 comments on commit c731226

Please sign in to comment.