-
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.
Rework GH actions to ensure tests and e2e tests are ran Signed-off-by: Flavio Castelli <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
3 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
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 |
---|---|---|
|
@@ -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 |