Migrate to ES Modules #39
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: Pull Request Test | |
on: | |
pull_request: | |
branches: [ main ] | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
checks: write | |
jobs: | |
pr: | |
name: Pull Request Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache | |
key: ${{ runner.os }} | |
- name: Set up nodejs | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Test | |
run: npm run test-all | |
- name: Type Check | |
run: npm run type-check-all | |
- name: Lint | |
run: npm run lint-all | |