Add unit test and linting controls #4
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: "Test :test_tube:" | |
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: "Install dependencies for examples ⚙️" | |
run: yarn install --frozen-lockfile --cwd docs/examples/simple | |
- name: "Lint 🔎" | |
run: yarn lint | |
- name: "Test 🧪" | |
run: yarn test:ci | |
- name: "Build 🔨" | |
run: yarn build |