Skip to content

Commit

Permalink
Merge pull request #1778 from torredil/update-ci-actions
Browse files Browse the repository at this point in the history
Update GitHub workflows
  • Loading branch information
k8s-ci-robot authored Oct 10, 2023
2 parents cd6cf06 + ef9ddc8 commit 4a8df4e
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 57 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/output-code-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
}
- name: 'Determine source PR'
uses: potiuk/get-workflow-origin@v1_1
uses: potiuk/get-workflow-origin@08219db9dbbbec802d571eaf0e14ece0bc005f72
id: source-run-info
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
echo 'EOF' >> $GITHUB_OUTPUT
- name: Create or update comment
uses: edumserrano/find-create-or-update-comment@v1
uses: edumserrano/find-create-or-update-comment@60a62b88d02efeb2c405e578d3a2b47ea0b230b1
with:
issue-number: ${{ steps.source-run-info.outputs.pullRequestNumber }}
body-includes: '<!-- pr-coverage -->'
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 4a8df4e

Please sign in to comment.