-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (32 loc) · 824 Bytes
/
build.yml
File metadata and controls
37 lines (32 loc) · 824 Bytes
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
name: build and publish test coverage
on:
push:
branches:
- '**'
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.25.5
- name: Check out code
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 23
- name: build webui
working-directory: ./webui
run: |
npm install
npm run copy-docs
npm run build
- name: Run Unit tests.
run: go test -v --cover -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload Coverage report to CodeCov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}