Merge pull request #237 from coroot/nodes_system_uuid #109
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: Continuous Integration | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
GO: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- name: gofmt -l . | |
run: files=$(gofmt -l .); if [[ -n "$files" ]]; then echo "$files"; exit 1; fi | |
- name: goimports -l . | |
run: | | |
go install golang.org/x/tools/cmd/goimports@latest | |
files=$(goimports -l .); if [[ -n "$files" ]]; then echo "$files"; exit 1; fi | |
- run: mkdir static && touch static/file.txt && go vet ./... | |
- run: go test ./... | |
- run: go build -mod=readonly . | |
UI: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./front/ | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run fmt-check | |
- run: npm run build-prod |