Skip to content

test: use nano-spawn #96

test: use nano-spawn

test: use nano-spawn #96

Workflow file for this run

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