Skip to content

feat: Add Golang checks to GitHub workflows #12

feat: Add Golang checks to GitHub workflows

feat: Add Golang checks to GitHub workflows #12

Workflow file for this run

name: Lint
on:
push:
branches:
- master
pull_request:
env:
PYTHON_MIN_VERSION: "3.7.13"
jobs:
asdf-bash:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/install@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_MIN_VERSION }}
- run: scripts/install_dependencies.bash
- run: scripts/lint.bash --check
asdf-golang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.5'
- name: Install dependencies
run: go get .
- name: Check format
run: [ -z "$(gofmt -l ./...)" ]

Check failure on line 35 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / Lint

Invalid workflow file

The workflow is not valid. .github/workflows/lint.yml (Line: 35, Col: 14): A sequence was not expected
- name: Vet
run: go vet
- name: Install staticcheck for linting
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Lint
run: staticcheck -tests -show-ignored ./...
- name: Build
run: build -v ./...
actions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check workflow files
uses: docker://rhysd/actionlint:1.6.24
with:
args: -color