Merge pull request #11 from bitxeno/dependabot/npm_and_yarn/web/stati… #125
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: "🏗️ Build" | |
| # trigger events | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| go_version: [1.21.x] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version: ${{ matrix.go_version }} | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - uses: actions/checkout@v4 | |
| - name: build frontend | |
| run: cd ./web/static && npm install && npm run build | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: latest | |
| args: --timeout=5m | |
| - run: go mod download | |
| - run: go test -coverprofile=coverage.txt -covermode=atomic ./... |