Add OpenWRT procd service script #758
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.22.0 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.0 | |
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 ./... |