Fix/strict typechecking #634
Workflow file for this run
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: Run tests | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
NODE_OPTIONS: "--max-old-space-size=2500" | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "npm" | |
cache-dependency-path: | | |
./package-lock.json | |
- name: npm ci | |
run: npm ci | |
- name: typecheck | |
run: npm run build | |
- name: Run tests | |
run: npm test | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Prettify code | |
uses: creyD/prettier_action@master | |
with: | |
dry: True | |
prettier_options: --write . | |
prettier_version: 2.8.4 # Fixed version to prevent breaking changes as creyD/prettier_action uses the latest available by default | |
# github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} |