Skip to content

🌱 Bump aquasecurity/trivy-action from 0.22.0 to 0.23.0 (#162) #384

🌱 Bump aquasecurity/trivy-action from 0.22.0 to 0.23.0 (#162)

🌱 Bump aquasecurity/trivy-action from 0.22.0 to 0.23.0 (#162) #384

Workflow file for this run

name: Build and Test Pull Request
# Trigger the workflow on push or pull request
on:
push:
pull_request:
env:
GO_VERSION: 1.22
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5.0.1
with:
go-version: ${{ env.GO_VERSION }}
cache: false # avoid issue like ttributes_test.go: Cannot open: File exists
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.56.2
args: --out-format=colored-line-number
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5.0.1
with:
go-version: ${{ env.GO_VERSION }}
- name: test
run: |
make test
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5.0.1
with:
go-version: ${{ env.GO_VERSION }}
- name: build
run: |
make build
build-docker-image-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5.0.1
with:
go-version: ${{ env.GO_VERSION }}
- name: image-amd64-build-only
run: |
make image-amd64-build-only
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
# * Module download cache
# * Build cache (Linux)
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-${{ github.job }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ github.job }}-go-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: add deps to path
run: |
./hack/actions/install-kubernetes-toolchain.sh $GITHUB_WORKSPACE/bin
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
- name: e2e tests
run: |
make e2e