format the code #773
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Auto triggered CI job | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- | |
name: Set up Go 1.23 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.3 | |
id: go | |
- | |
name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- | |
name: Build the frontend project | |
run: | | |
cd web | |
npm ci | |
npm run build | |
cd .. | |
go generate ./... | |
- | |
name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
- | |
name: Run unit tests | |
run: go test ./... |