Skip to content

Workflow file for this run

name: ci

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

`push_request` is not a valid event name
on:
push_request:
branches: [main]
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: go test
run: go test ./... -cover
- name: Install gosec
run: go install github.com/securego/gosec/v2/cmd/gosec@latest
- name: static security check
run: gosec ./...
style:
name: Style
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: style check
run: test -z $(go fmt ./...)
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Add Go Bin to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: staticcheck
run: staticcheck ./...