Skip to content

fix(ci): tests command #8

fix(ci): tests command

fix(ci): tests command #8

Workflow file for this run

name: Node.js
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
node-version: [21.x, 22.x]
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Prepare environment
run: 'echo ''{ "type": "module" }'' > package.json'
run: npx jsr add @beast/compat @std/assert

Check failure on line 28 in .github/workflows/node.yml

View workflow run for this annotation

GitHub Actions / Node.js

Invalid workflow file

The workflow is not valid. .github/workflows/node.yml (Line: 28, Col: 9): 'run' is already defined
- name: Run tests
run: npx --yes tsx --test **/*.test.ts && \
NO_COLOR=1 npx --yes tsx --test **/*.test.ts && \
COLORTERM='' TERM='' npx --yes tsx --test **/*.test.ts &&