mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-11-22 08:08:07 +00:00
GitHub Actions in correct directory (#787)
* Rename workflow to workflows * Add integration tests to Actions * Upload code coverage after unit test * don't need code coverage when we do a release * Use same Go version as in go.mod * Use same Go version as go.mod
This commit is contained in:
parent
e4d6ed2e8e
commit
b6f619cdcb
@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
go-version: 1.15
|
go-version: 1.13
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: yaml-lint
|
- name: yaml-lint
|
||||||
@ -31,6 +31,8 @@ jobs:
|
|||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v1
|
||||||
with:
|
with:
|
||||||
file: ./coverage.txt
|
file: ./coverage.txt
|
||||||
|
- name: Run integration tests
|
||||||
|
run: make integration-tests
|
||||||
- name: Dry-run release snapshot
|
- name: Dry-run release snapshot
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v2
|
||||||
with:
|
with:
|
@ -11,15 +11,13 @@ jobs:
|
|||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
go-version: 1.15
|
go-version: 1.13
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: make tests
|
run: make tests
|
||||||
- name: Upload code coverage
|
- name: Run integration tests
|
||||||
uses: codecov/codecov-action@v1
|
run: make integration-tests
|
||||||
with:
|
|
||||||
file: ./coverage.txt
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v2
|
||||||
with:
|
with:
|
Loading…
Reference in New Issue
Block a user