Skip to content

Cleanup CI workflow #49

Cleanup CI workflow

Cleanup CI workflow #49

Workflow file for this run

name: check code
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
uses: actions/setup-go@v5

Check failure on line 8 in .github/workflows/check.yaml

View workflow run for this annotation

GitHub Actions / check code

Invalid workflow file

The workflow is not valid. .github/workflows/check.yaml (Line: 8, Col: 9): 'uses' is already defined .github/workflows/check.yaml (Line: 28, Col: 9): 'uses' is already defined
with:
go-version: 1.22.x
- run: go version
- name: gofmt
run: |
set -e
out=$(gofmt -s -l *.go)
if [ -n "$out" ]; then
echo "All the following files are not correctly formatted"
echo $out
exit 1
fi
- run: go vet
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- run: go version
- name: test
run: go test -v