Skip to content

Updated compliance tests (#126) #362

Updated compliance tests (#126)

Updated compliance tests (#126) #362

Workflow file for this run

name: ci
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
run-tests:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- '1.18'
- '1.19'
- '1.20'
- '1.21'
- '1.22'
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install deps
run: go mod download
- name: Tests
run: make test
static-check:
name: Run Static Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.18'
- name: Install deps
run: go mod download
- name: go vet ./...
run: go vet ./...
# TODO: improve with caching
- uses: dominikh/[email protected]
with:
version: "2022.1.1"
install-go: false
min-go-version: "1.18"
golangci-lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1