ci / check (push) Successful in 52s
- Pinned checkout to v4.2.2, setup-go to v5.3.0, and setup-node to v4.1.0. - Left CI job steps and triggers unchanged.
28 lines
586 B
YAML
28 lines
586 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4.2.2
|
|
- uses: actions/setup-go@v5.3.0
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: true
|
|
- uses: actions/setup-node@v4.1.0
|
|
with:
|
|
node-version: 20
|
|
- name: gofmt
|
|
run: test -z "$(gofmt -l internal cmd)"
|
|
- name: go vet
|
|
run: go vet ./...
|
|
- name: go test -race
|
|
run: go test -race ./...
|
|
- name: frontend syntax
|
|
run: node --check web/js/app.js
|