1
0
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:
Liz Rice 2020-12-23 10:48:17 +00:00 committed by GitHub
parent e4d6ed2e8e
commit b6f619cdcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -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:

View File

@ -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: