-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Fabrizio Sestito <[email protected]>
- Loading branch information
1 parent
b56e0bc
commit 0507a9b
Showing
2 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
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@v4 | ||
- uses: actions/setup-go@v4 | ||
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/go-wasi-template | ||
artifacthub: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
on: | ||
push: | ||
pull_request: | ||
workflow_call: | ||
|
||
name: Continuous integration | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: "1.21" | ||
- run: make test | ||
|
||
e2e-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: "1.21" | ||
- name: Setup BATS | ||
uses: mig4/[email protected] | ||
with: | ||
bats-version: 1.5.0 | ||
- name: Install kwctl | ||
uses: kubewarden/github-actions/[email protected] | ||
- run: make e2e-tests | ||
|
||
golangci: | ||
name: Golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: "1.21" | ||
- name: golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
version: v1.53.3 |