Merge pull request #1 from Teamwork/update-ghactions-artifacts-version #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |