2021-10-01 00:17:49 -07:00
|
|
|
name: "build-test"
|
2021-09-30 21:58:11 -07:00
|
|
|
on: # rebuild any PRs and main branch changes
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2021-10-01 00:17:49 -07:00
|
|
|
- "releases/*"
|
2021-09-30 21:58:11 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build: # make sure build/ci work properly
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: |
|
2021-10-01 00:17:49 -07:00
|
|
|
yarn install
|
2021-09-30 21:58:11 -07:00
|
|
|
- run: |
|
2021-10-01 00:17:49 -07:00
|
|
|
yarn run all
|
2021-09-30 21:58:11 -07:00
|
|
|
test: # make sure the action works on a clean machine without building
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ./
|
2021-10-01 00:27:13 -07:00
|
|
|
with:
|
|
|
|
files: |
|
2021-12-24 14:15:29 -08:00
|
|
|
src/_tests__/valid.yaml
|
|
|
|
schemaPath: "src/__tests__/schema.json"
|