Skip to content

using separate job #307

using separate job

using separate job #307

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: Set up Go

Check failure on line 37 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

You have an error in your yaml syntax on line 37
uses: actions/setup-go@v5
with:
go-version: "1.22"
- 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.22"
golangci-lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: golangci-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0