40 lines
713 B
YAML
40 lines
713 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
quality:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: setup go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: true
|
|
|
|
- name: verify dependencies
|
|
run: go mod download
|
|
|
|
- name: generate templ files
|
|
run: go run github.com/a-h/templ/cmd/templ@v0.3.1001 generate
|
|
|
|
- name: vet
|
|
run: go vet ./...
|
|
|
|
- name: test
|
|
run: go test ./...
|
|
|
|
- name: build
|
|
run: go build ./...
|
|
|
|
- name: staticcheck
|
|
run: go run honnef.co/go/tools/cmd/staticcheck@latest ./...
|