Skip to content

Commit

Permalink
Update GitHub workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Torres <[email protected]>
  • Loading branch information
torredil committed Oct 9, 2023
1 parent 7ca4149 commit 18d79a8
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 55 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/generate-code-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout base
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}

- name: Set up go
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '^1.20.2'
go-version-file: 'go.mod'

- name: Generate report
run: |
Expand All @@ -32,12 +32,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up go
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '^1.20.2'
go-version-file: 'go.mod'

- name: Generate report
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm-chart-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/trivy-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- id: set-matrix
uses: mikefarah/yq@master
Expand All @@ -31,7 +31,7 @@ jobs:

steps:
- name: Scan container image
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.12.0
with:
image-ref: '${{ matrix.image }}'
output: 'results.sarif'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v3

- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.12.0
with:
scan-type: 'fs'
ignore-unfixed: true
Expand Down
19 changes: 4 additions & 15 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,14 @@ jobs:
matrix:
os: [ ubuntu-latest, windows-latest ]
steps:
- id: go-cache-paths
run: |
echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
shell: bash
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.2

- name: Go Build Cache
uses: actions/cache@v3
uses: actions/setup-go@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-cache-${{ hashFiles('**/go.sum') }}
go-version-file: 'go.mod'

- name: Run tests
run: |
go test -v ./cmd/... ./pkg/...
go test -v ./cmd/... ./pkg/...
30 changes: 0 additions & 30 deletions .github/workflows/verify.yaml

This file was deleted.

0 comments on commit 18d79a8

Please sign in to comment.