Update google.golang.org/genproto/googleapis/api digest to 1a7da9e #2596
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: Build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
merge_group: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Set up node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 23 | |
- name: Set up buf | |
uses: bufbuild/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Backend | |
run: | | |
go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest | |
go generate ./... | |
go build -v ./... | |
- name: Test Backend | |
run: | | |
go install github.com/mfridman/tparse@latest | |
go test -v -coverprofile=coverage.cov -coverpkg ./... -covermode=atomic ./... -json | tee output.json | tparse -follow || true | |
tparse -format markdown -file output.json > $GITHUB_STEP_SUMMARY | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
files: coverage.cov | |
flags: unittests | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Build UI | |
run: | | |
npm ci | |
npm run build | |
working-directory: ./ui |