Skip to content

Commit

Permalink
ammendong file
Browse files Browse the repository at this point in the history
  • Loading branch information
mimiMonads committed Oct 24, 2024
1 parent 6b9dad6 commit da5dc77
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
name: Node.js CI

on: [push, pull_request]
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [21.x]

steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '21'

- name: Install dependencies
- run: npx jsr add @cross/test @std/assert
- run: "echo '{ \"type\": \"module\" }' > package.json"

- name: Run tests
run: |
find . -type f -name "*.test.ts" | while read -r file; do
echo "Running tests in $file"
npx --yes tsx --test $file
done
- run: "echo '{ \"type\": \"module\" }' > package.json" # Needed for tsx to work
- run: npx --yes tsx --test *.test.ts

0 comments on commit da5dc77

Please sign in to comment.