Skip to content

Lint + CI

Lint + CI #1

Workflow file for this run

name: build-test
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.22.x
cache-dependency-path: |
./go.sum
_tools/go.sum
- name: Go version
run: go version
- name: Binary dependencies
run: |
./deps.sh gotest.tools/gotestsum
echo "$(pwd)/bin" >> $GITHUB_PATH
- name: Run tests
run: |
gotestsum \
--format github-actions \
--format-hivis \
-- ./...
lint:

Check failure on line 39 in .github/workflows/build-test.yaml

View workflow run for this annotation

GitHub Actions / build-test

Invalid workflow file

The workflow is not valid. .github/workflows/build-test.yaml (Line: 39, Col: 5): Unexpected value 'lint'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.22.x
cache-dependency-path: |
./go.sum
_tools/go.sum
- name: Go version
run: go version
- name: Binary dependencies
run: |
./deps.sh github.com/golangci/golangci-lint/cmd/golangci-lint
echo "$(pwd)/bin" >> $GITHUB_PATH
- name: Run linters
run: |
golangci-lint run --out-format=github-actions