validate-yaml/.github/workflows/test.yml

26 lines
616 B
YAML
Raw Permalink Normal View History

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