Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 11, 2024
1 parent dea8811 commit 3989edc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,28 +83,28 @@ jobs:
run: nr build

- name: loader:auto
run: node ./fixtures/index.mjs
run: node ./fixtuers/basic/index.mjs
if: always()
env:
DEBUG: importx
IMPORTX_LOADER: auto

- name: loader:jiti
run: node ./fixtures/index.mjs
run: node ./fixtuers/basic/index.mjs
if: always()
env:
DEBUG: importx
IMPORTX_LOADER: jiti

- name: loader:tsx
run: node ./fixtures/index.mjs
run: node ./fixtuers/basic/index.mjs
if: always()
env:
DEBUG: importx
IMPORTX_LOADER: tsx

- name: loader:bundle-require
run: node ./fixtures/index.mjs
run: node ./fixtuers/basic/index.mjs
if: always()
env:
DEBUG: importx
Expand All @@ -118,6 +118,7 @@ jobs:
IMPORTX_LOADER: native

- uses: denoland/setup-deno@v1
if: always()
with:
deno-version: vx.x.x

Expand All @@ -128,10 +129,26 @@ jobs:
DEBUG: importx
IMPORTX_LOADER: native

- name: loader:auto with deno
run: deno run --unstable --allow-read --allow-env --allow-run ./fixtures/basic/index.mjs
if: always()
env:
DEBUG: importx
IMPORTX_LOADER: auto

- uses: oven-sh/setup-bun@v1
if: always()

- name: loader:native with bun
run: bun run ./fixtures/basic/index.mjs
if: always()
env:
DEBUG: importx
IMPORTX_LOADER: native

- name: loader:auto with bun
run: bun run ./fixtures/basic/index.mjs
if: always()
env:
DEBUG: importx
IMPORTX_LOADER: auto
2 changes: 1 addition & 1 deletion fixtures/basic/index.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable node/prefer-global/process */
/* eslint-disable no-console */
import process from 'node:process'

const LOADER = process.env.IMPORTX_LOADER || 'auto'

Expand Down

0 comments on commit 3989edc

Please sign in to comment.