Merge pull request #763 from coroot/docs_disable_telemetry #745
This file contains hidden or 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.23' | |
| - 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 |