Skip to content

Add CI linting/formatting #5

Add CI linting/formatting

Add CI linting/formatting #5

Workflow file for this run

name: lint
on: [pull_request, workflow_dispatch]
jobs:
lua:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check formatting
uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .
go:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22
- name: Check formatting
run: go fmt ./...
- name: Check linting
run: go vet ./...
- name: Check golines
run: go get -u github.com/segmentio/golines
run: golines -w .

Check failure on line 31 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: 31, Col: 9): 'run' is already defined