Skip to content

linting

linting #8

Workflow file for this run

name: Go Test and Lint
on:
push:
branches: [ "main", "test-and-lint-action" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
go

Check failure on line 20 in .github/workflows/go.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/go.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
- name: Build
run: go build -v -mod=mod -o target/hello-world-app ./src
- name: Test
run: go test -mod=mod -v ./src/...
- name: Lint
uses: golangci/golangci-lint-action@v6
with: v1.43
run: golangci-lint run