Merge pull request #33 from kravciak/bats #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
name: Release policy | |
jobs: | |
test: | |
name: run tests and linters | |
uses: ./.github/workflows/test.yml | |
release: | |
runs-on: ubuntu-latest | |
needs: test | |
permissions: | |
# Required to create GH releases | |
contents: write | |
# Required to push to GHCR | |
packages: write | |
# Required by cosign keyless signing | |
id-token: write | |
steps: | |
- name: Install dependencies | |
uses: kubewarden/github-actions/[email protected] | |
- 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/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
oci-target: ghcr.io/${{ github.repository_owner }}/tests/raw-validation-wasi-policy | |
artifacthub: false |