diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 607bd8e..474093b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,11 @@ jobs: with: node-version: 24 cache: 'pnpm' - - run: pnpm ci + - run: pnpm install + # Ensure `eq` is on PATH with a fake .equellarc, some tests shell out to it + - run: pnpm link + - run: | + echo '{"root": "http://localhost", "token": "fake"}' > .equellarc - run: pnpm test github-release: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0a64807 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Unit Tests + +on: + pull_request: + workflow_call: + +jobs: + test: + name: Run Tests 🧪 + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v6 + - uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0 + with: + run_install: false + version: latest + - uses: actions/setup-node@v6 + with: + node-version: 24 + cache: 'pnpm' + - run: pnpm install + # Ensure `eq` is on PATH with a fake .equellarc, some tests shell out to it + - run: pnpm link + - run: | + echo '{"root": "http://localhost", "token": "fake"}' > .equellarc + - run: pnpm test