refactor: use nano-spawn #98
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: Test | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
branches: [master, develop] | |
permissions: | |
contents: write | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
repository: ${{ github.repository }} # For the tests to be able to publish current branch | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
run_install: true | |
- name: Lint | |
run: pnpm lint | |
- name: Type check | |
run: pnpm type-check | |
- name: Build | |
run: pnpm build | |
- name: Setup Git # Only used by the Publish test | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "<>" | |
- name: Test | |
run: pnpm test |