Skip to content

Update github actions and go.mod to Go 1.22 #4

Update github actions and go.mod to Go 1.22

Update github actions and go.mod to Go 1.22 #4

Workflow file for this run

on: [push, pull_request]
name: Tests
jobs:
test-cache:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.22, 1.x]
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Test
run: |
go test ./...
go test -race ./...
- name: go vet
run: go vet ./...
- name: Staticcheck
uses: dominikh/[email protected]
with:
install-go: false
- name: Run Gosec Security Scanner
if: runner.os == 'Linux'
uses: securego/gosec@master
with:
args: ./...