1 | name: 'Tests: pretest/posttest'
|
2 |
|
3 | on: [pull_request, push]
|
4 |
|
5 | jobs:
|
6 | pretest:
|
7 | runs-on: ubuntu-latest
|
8 |
|
9 | steps:
|
10 | - uses: actions/checkout@v2
|
11 | - uses: ljharb/actions/node/run@main
|
12 | name: 'npm install && npm run pretest'
|
13 | with:
|
14 | node-version: 'lts/*'
|
15 | command: 'pretest'
|
16 |
|
17 | posttest:
|
18 | runs-on: ubuntu-latest
|
19 |
|
20 | steps:
|
21 | - uses: actions/checkout@v2
|
22 | - uses: ljharb/actions/node/run@main
|
23 | name: 'npm install && npm run posttest'
|
24 | with:
|
25 | node-version: 'lts/*'
|
26 | command: 'posttest'
|