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

[wip] Deno build #34

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,23 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Setup Deno 1.x
uses: denoland/setup-deno@v1

- name: Setup Deno 2.x
uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x

- name: Setup Node 18
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8

- name: Check fmt
run: deno fmt --check

- name: Install dependencies
run: pnpm i
run: deno install --allow-scripts=npm:[email protected]

- name: Test
run: pnpm test
run: deno task test
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"src"
],
"scripts": {
"postinstall": "cd test/fixtures/basics && npm install && cd ../dynimport && npm install",
"test": "deno test --allow-run --allow-env --allow-read --allow-net ./test/",
"fmt": "deno fmt"
},
Expand All @@ -38,7 +39,7 @@
"devDependencies": {
"@types/lodash": "^4.17.5",
"@types/node": "^20.11.5",
"astro": "^4.2.1",
"typescript": "^5.3.3"
"typescript": "^5.3.3",
"astro": "^4.2.1"
}
}
Loading
Loading