Skip to content

enable Actions

enable Actions #1

Workflow file for this run

jobs:
golangci:

Check failure on line 2 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 2
name: lint
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.21"]
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
test:
name: test
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.20", "1.21"]
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- name: test
run: |
go test -v -race