-
Notifications
You must be signed in to change notification settings - Fork 360
51 lines (50 loc) · 1.26 KB
/
test.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
name: Test
on:
push:
branches:
- master
pull_request:
jobs:
validator:
name: Run Linters and Checkers
runs-on: ubuntu-22.04
steps:
- name: Check-out code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.22.6"
- uses: actions/setup-node@v4
with:
node-version: "18.17.0"
cache: "npm"
cache-dependency-path: webui/package-lock.json
- uses: bufbuild/buf-setup-action@v1.28.1
with:
github_token: ${{ github.token }}
- name: Generate code
env:
NODE_OPTIONS: "--max-old-space-size=4096"
run: |
make gen
make validate-clients-untracked-files
- name: Checks validator
env:
GOLANGCI_LINT_FLAGS: --out-format github-actions
run: make checks-validator
test-go:
name: Run Go tests
runs-on: ubuntu-22.04
steps:
- name: Check-out code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.22.6"
- name: Run Go tests
run: |
mkdir ./webui/dist
touch ./webui/dist/index.html
make test-go