Skip to content

Bump wandera/golangci-lint-action from 3 to 5 #160

Bump wandera/golangci-lint-action from 3 to 5

Bump wandera/golangci-lint-action from 3 to 5 #160

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
issue_comment:
types:
- created
jobs:
unit:
if: (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/test')) || github.event_name == 'pull_request' || github.event_name == 'push'
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Test
run: go test -v ./...
build:
if: (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/test')) || github.event_name == 'pull_request' || github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker build
uses: docker/build-push-action@v5
with:
context: .
build-args: |
VERSION=${{ github.ref_name }}
vulncheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
id: go-version
with:
cache: false
go-version-file: go.mod
- name: Scan for Vulnerabilities in Code
uses: wandera/govulncheck-action@v1.0.0
with:
go-version: ${{ steps.go-version.outputs.go-version }}
package: ./...