2020-07-20 11:44:22 +00:00
|
|
|
name: 'build-test'
|
2019-12-06 19:22:35 +00:00
|
|
|
on: # rebuild any PRs and main branch changes
|
2019-09-25 19:20:18 +00:00
|
|
|
pull_request:
|
2019-09-21 12:56:30 +00:00
|
|
|
push:
|
2019-09-25 19:20:18 +00:00
|
|
|
branches:
|
2020-07-20 11:52:25 +00:00
|
|
|
- main
|
2019-09-25 19:20:18 +00:00
|
|
|
- 'releases/*'
|
2019-09-21 12:56:30 +00:00
|
|
|
|
|
|
|
jobs:
|
2019-12-06 19:22:35 +00:00
|
|
|
build: # make sure build/ci work properly
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-07-20 11:44:22 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: |
|
|
|
|
npm install
|
|
|
|
- run: |
|
|
|
|
npm run all
|
2019-12-06 19:22:35 +00:00
|
|
|
test: # make sure the action works on a clean machine without building
|
2019-09-21 12:56:30 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-07-20 11:44:22 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ./
|
|
|
|
with:
|
|
|
|
milliseconds: 1000
|