-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use centralized actions Signed-off-by: Flavio Castelli <[email protected]>
- Loading branch information
Showing
2 changed files
with
7 additions
and
66 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 |
---|---|---|
|
@@ -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 | ||
|
@@ -24,22 +22,6 @@ jobs: | |
# 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.23" | ||
|
||
- 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 | ||
uses: kubewarden/github-actions/.github/workflows/[email protected] | ||
with: | ||
oci-target: ghcr.io/${{ github.repository_owner }}/tests/go-wasi-template |
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 |
---|---|---|
@@ -1,47 +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.23" | ||
- 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.23" | ||
- name: Setup BATS | ||
uses: mig4/[email protected] | ||
with: | ||
bats-version: 1.11.0 | ||
- name: Install dependencies | ||
uses: kubewarden/github-actions/[email protected] | ||
- name: Install kwctl | ||
uses: kubewarden/github-actions/[email protected] | ||
- 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.23" | ||
- 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/[email protected] |