Skip to content

Commit

Permalink
fix: GH actions
Browse files Browse the repository at this point in the history
Rework GH actions to ensure tests and e2e tests are ran

Signed-off-by: Flavio Castelli <[email protected]>
  • Loading branch information
flavio committed Sep 7, 2023
1 parent ed5637b commit 6befb57
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: Release policy
jobs:
test:
name: run tests and linters
uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.1.9
uses: ./.github/workflows/test.yml

release:
runs-on: ubuntu-latest
Expand Down
42 changes: 40 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,43 @@ on: [push, pull_request]
name: Continuous integration
jobs:
test:
name: run tests and linters
uses: kubewarden/github-actions/.github/workflows/[email protected]
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 experiemental kwctl
uses: kubewarden/github-actions/[email protected]
with:
KWCTL_VERSION: v1.7.0-rc1
- 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.49.0
- run: make lint

0 comments on commit 6befb57

Please sign in to comment.