Skip to content

♻️ Clarify and document examples structure #9

♻️ Clarify and document examples structure

♻️ Clarify and document examples structure #9

Workflow file for this run

name: Run Poltergust Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test-valid-example:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
- name: Install poltergust
run: npm ci
- name: Test the example ruleset
run: npx poltergust test ./example/valid
build-and-test-invalid-example:
needs: build-and-test-valid-example
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
- name: Install poltergust
run: npm ci
- name: Test the invalid example ruleset (should exit 1)
run: npx poltergust test ./example/invalid || (exitcode=$?; [ $exitcode -eq 1 ] || exit $exitcode)
shell: bash