-
-
Notifications
You must be signed in to change notification settings - Fork 496
60 lines (47 loc) · 1.34 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 13.x, 14.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: EditorConfig Lint
uses: docker://mstruebing/editorconfig-checker:2.0.3
- name: Install libkrb5-dev (for run-rs)
run: sudo apt install libkrb5-dev
- name: Init docker
run: docker-compose up -d
- name: Install
run: |
yarn config set ignore-engines true
yarn
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- name: Build
run: yarn build
- name: Lint
run: yarn lint
- name: Test
run: |
yarn run-rs-in-background
yarn coverage > COVERAGE_RESULT
echo "$(cat COVERAGE_RESULT)"
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Codeclimate
uses: paambaati/codeclimate-action@v2.5.3
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: echo "$(cat COVERAGE_RESULT)"
- name: Teardown docker
run: docker-compose down