-
Notifications
You must be signed in to change notification settings - Fork 31
53 lines (51 loc) · 1.29 KB
/
pr-build.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
52
53
name: PR Build and Test
on:
pull_request
jobs:
test:
runs-on: ubuntu-latest
name: Node.JS ${{ matrix.node-version }} Axios ${{ matrix.axios-version }}
strategy:
matrix:
node-version:
- 12.x
- 14.x
- 16.x
axios-version:
- v0.20.0-0
- v0.21.1
- v0.21.4
- v0.22.0
- v0.23.0
- v0.24.0
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: |
yarn install
yarn add --dev axios@^${{ matrix.axios-version }}
- name: Test
env:
LAMBDA_REMOTE_DOCKER: true
run: yarn test
- name: Coverage
run: yarn coverage
- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: .nyc_output/lcov.info
flag-name: run-${{ matrix.node }}
parallel: true
finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true