feat: add live reload by using esbuild watch api #2
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 unit tests for pages functions | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
env: | |
NODE_ENV: "test" | |
jobs: | |
testing: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.10.0" | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: yarn | |
- name: Run tests | |
run: npx vitest --run |