-
Notifications
You must be signed in to change notification settings - Fork 60
44 lines (42 loc) · 1.13 KB
/
prjob_tests.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
40
41
42
43
44
name: Tests
on:
pull_request:
branches:
- master
jobs:
test:
name: Craco
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: yarn --cwd ./frontend/app install
- name: Tests
run: NODE_OPTIONS="--max_old_space_size=8192" yarn --cwd ./frontend/app run test
- name: Set up Golang
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Go Test
run: go test -v ./...
test-jest:
name: Jest
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: yarn --cwd ./frontend/app install
- name: Tests
run: NODE_OPTIONS="--max_old_space_size=8192" yarn --cwd ./frontend/app run test-jest
test-go:
name: Go
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install cover
run: go get golang.org/x/tools/cmd/cover
- name: Tests
run: go test ./config ./auth ./db ./handlers ./routes ./utils -race -v -coverprofile=coverage.out && ./cover-check.sh coverage.out 2.9