-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1012 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build
on:
push:
branches: ["main"]
pull_request:
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: 20
- name: Set up buf
uses: bufbuild/buf-setup-action@v1.28.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Backend
run: |
go generate ./...
go build -v ./...
- name: Test Backend
run: go test -v -coverprofile=coverage.cov -coverpkg ./... -covermode=atomic ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.0-beta.2
with:
files: coverage.cov
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
- name: Build UI
run: cd ui && npm ci