2019-09-25 19:20:18 +00:00
|
|
|
name: "Test typescript-action"
|
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:
|
|
|
|
- master
|
|
|
|
- '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:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- run: |
|
|
|
|
npm install
|
|
|
|
npm run all
|
|
|
|
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:
|
|
|
|
- uses: actions/checkout@v1
|
2019-09-21 14:33:30 +00:00
|
|
|
- uses: ./
|
2019-09-21 12:56:30 +00:00
|
|
|
with:
|
2019-12-06 19:22:35 +00:00
|
|
|
milliseconds: 1000
|