Skip to content

Commit

Permalink
fix(ci): tests command
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Beast committed Jun 29, 2024
1 parent 0067e22 commit e577823
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,22 @@ jobs:
strategy:
fail-fast: true
matrix:
node: [21.x, 22.x]
node-version: [21.x, 22.x]

steps:
- uses: actions/checkout@v4
- name: Setup repo
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
node-version: ${{ matrix.node-version }}

- name: Prepare environment
run: 'echo ''{ "type": "module" }'' > package.json'
run: npx jsr add @beast/compat @std/assert

- name: Run tests
run: npx --yes tsx --test **/*.test.ts
run: NO_COLOR=1 npx --yes tsx --test **/*.test.ts
run: COLORTERM='' TERM='' npx --yes tsx --test **/*.test.ts
run: npx --yes tsx --test **/*.test.ts && \
NO_COLOR=1 npx --yes tsx --test **/*.test.ts && \
COLORTERM='' TERM='' npx --yes tsx --test **/*.test.ts &&

0 comments on commit e577823

Please sign in to comment.