forked from linkerd/linkerd2
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.14 KB
/
unit_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
name: Unit tests
on:
pull_request: {}
push:
paths-ignore:
- '*.md'
- '**/*.md'
branches:
- main
jobs:
go_unit_tests:
name: Go unit tests
timeout-minutes: 30
runs-on: ubuntu-18.04
container:
image: golang:1.14.2
steps:
- name: Checkout code
# actions/checkout@v2
uses: actions/checkout@722adc6
- name: Go unit tests
run: |
go get gotest.tools/[email protected]
# TODO: validate bin/protoc-go.sh does not dirty the repo
gotestsum -- -cover -race -v -mod=readonly ./...
js_unit_tests:
name: JS unit tests
timeout-minutes: 30
runs-on: ubuntu-18.04
container:
image: node:14-stretch
steps:
- name: Checkout code
# actions/checkout@v2
uses: actions/checkout@722adc6
- name: Yarn setup
run: curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.21.1 --network-concurrency 1
- name: JS unit tests
run: |
export PATH="$HOME/.yarn/bin:$PATH"
export NODE_ENV=test
bin/web --frozen-lockfile
bin/web test --reporters="jest-dot-reporter" --reporters="./gh_ann_reporter.js"