Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tempdir and tempfile utils #803

Merged
merged 5 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 33 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
FORCE_COLOR: 3
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [16.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand Down Expand Up @@ -74,7 +74,9 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: build
- run: bun test ./test/smoke/bun.test.js
- run: |
bun test ./test/smoke/bun.test.js
bun ./test/smoke/ts.test.ts
timeout-minutes: 1
env:
FORCE_COLOR: 3
Expand All @@ -91,7 +93,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: build
- run: deno test ./test/smoke/deno.test.js --allow-read --allow-sys --allow-env --allow-run
- run: deno test --allow-read --allow-sys --allow-env --allow-run ./test/smoke/deno.test.js
timeout-minutes: 1
env:
FORCE_COLOR: 3
Expand All @@ -116,3 +118,31 @@ jobs:
- name: mjs smoke test
if: matrix.node-version != '12'
run: npm run test:smoke:mjs

smoke-ts:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
ts: [4, 5]
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install deps
run: npm ci
- name: Install TypeScript ${{ matrix.ts }}
run: |
npm i typescript@${{ matrix.ts }}
tsc -v
- uses: actions/download-artifact@v4
with:
name: build
- name: tsc
run: npm run test:smoke:tsc
- name: tsx
run: npm run test:smoke:tsx
- name: ts-node
run: npm run test:smoke:ts-node
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ coverage/
package/
reports/
yarn.lock
test/fixtures/ts-project/package-lock.json
test/fixtures/js-project/package-lock.json
temp