2019-12-07 18:46:15 +00:00
|
|
|
name: "units-test"
|
2019-09-11 06:54:14 +00:00
|
|
|
on:
|
2019-09-11 19:11:05 +00:00
|
|
|
pull_request:
|
2019-09-11 06:54:14 +00:00
|
|
|
push:
|
2019-09-11 19:11:05 +00:00
|
|
|
branches:
|
2020-07-17 12:53:12 +00:00
|
|
|
- main
|
2019-09-23 04:28:12 +00:00
|
|
|
- 'releases/*'
|
2019-09-11 05:44:28 +00:00
|
|
|
|
|
|
|
jobs:
|
2019-12-07 18:46:15 +00:00
|
|
|
# unit tests
|
|
|
|
units:
|
2019-09-11 05:44:28 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-07-17 12:51:46 +00:00
|
|
|
- uses: actions/checkout@v2
|
2019-09-11 05:44:28 +00:00
|
|
|
- run: npm ci
|
|
|
|
- run: npm test
|
2019-12-07 18:46:15 +00:00
|
|
|
|
2020-07-20 11:08:15 +00:00
|
|
|
# test action works running from the graph
|
2019-12-07 18:46:15 +00:00
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-07-17 12:51:46 +00:00
|
|
|
- uses: actions/checkout@v2
|
2019-09-11 19:11:05 +00:00
|
|
|
- uses: ./
|
|
|
|
with:
|
2019-09-11 05:44:28 +00:00
|
|
|
milliseconds: 1000
|