Haste 1.0.0 #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Tests 🧪" | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'master' | |
permissions: {} | |
jobs: | |
validate: | |
name: Lint & Test | |
permissions: | |
checks: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Check out repo 📦" | |
uses: actions/checkout@v3 | |
- name: "Setup Node ⚙️" | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: "Install dependencies ⚙️" | |
run: yarn install --frozen-lockfile | |
- name: "Lint 🔎" | |
run: yarn lint | |
- name: "Test 🧪" | |
run: yarn test:ci | |
- name: "Build 🔨" | |
run: yarn build | |
"validate-examples": | |
name: Validate Examples | |
permissions: | |
checks: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Check out repo 📦" | |
uses: actions/checkout@v3 | |
- name: "Setup Node ⚙️" | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: "Install project dependencies ⚙️" | |
run: yarn install --frozen-lockfile | |
- name: "Install simple example dependencies ⚙️" | |
working-directory: docs/examples/simple | |
run: yarn install --frozen-lockfile | |
- name: "Install auth example dependencies ⚙️" | |
working-directory: docs/examples/customErrorHandlingAndAuth | |
run: yarn install --frozen-lockfile | |
- name: "Test auth example 🧪" | |
working-directory: docs/examples/customErrorHandlingAndAuth | |
run: yarn test:ci | |
- name: "Test simple example 🧪" | |
working-directory: docs/examples/simple | |
run: yarn test:ci |