Skip to content

radix-vulnerability-scanner-pr #155

radix-vulnerability-scanner-pr

radix-vulnerability-scanner-pr #155

Workflow file for this run

name: Pull request
on:
pull_request:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build docker image
env:
REF: ${{ github. sha }}
run: make build
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Install dependencies
run: go mod download
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
# version: v1.59.1
version: v1.55.2
args: --timeout=30m --max-same-issues=0 --out-format=github-actions
# - name: Install GolangCI Lint
# run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
# - name: golangci-lint
# run: golangci-lint run --timeout=30m --max-same-issues=0 --out-format=github-actions
test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Install dependencies
run: go mod download
- name: Run Tests
run: go test -cover `go list ./... | grep -v 'pkg/client'`