Skip to content

Bump actions/checkout from 3 to 4 in /test-actions #141

Bump actions/checkout from 3 to 4 in /test-actions

Bump actions/checkout from 3 to 4 in /test-actions #141

Workflow file for this run

name: Lint and Test
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
gofmt-vet:
name: Gofmt and Vet
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install tools
run: make -s go-install-tools
- name: Run Gofmt diff
run: make -s fmt-diff
- name: Run Vet
run: make -s vet
golangci-lint:
name: GolangCI Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: GolangCI Lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.56.2
skip-pkg-cache: true
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Test
run: make -s test