Skip to content

Commit 77dbc9c

Browse files
authored
feat: add deno testing (#146)
1 parent 8ed3bfc commit 77dbc9c

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/js-test-and-release.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,29 @@ jobs:
8181
fail_ci_if_error: false
8282
disable_safe_directory: ${{ runner.os == 'Windows' }} # NOTE: The workspace on Windows runners is on the C: drive and the codecov action is unable to lock the git directory on it
8383

84+
test-deno:
85+
needs: build
86+
runs-on: ${{ matrix.os }}
87+
strategy:
88+
matrix:
89+
os: [windows-latest, ubuntu-latest, macos-latest]
90+
node: [lts/*]
91+
fail-fast: true
92+
steps:
93+
- uses: actions/checkout@v6
94+
- uses: actions/setup-node@v6
95+
with:
96+
node-version: ${{ matrix.node }}
97+
- uses: ipfs/aegir/actions/cache-node-modules@main
98+
- run: npm run --if-present test:deno
99+
- uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
100+
with:
101+
flags: deno
102+
files: .coverage/*,packages/*/.coverage/*
103+
token: ${{ secrets.CODECOV_TOKEN }}
104+
fail_ci_if_error: false
105+
disable_safe_directory: ${{ runner.os == 'Windows' }} # NOTE: The workspace on Windows runners is on the C: drive and the codecov action is unable to lock the git directory on it
106+
84107
test-chrome:
85108
needs: build
86109
runs-on: ubuntu-latest
@@ -240,7 +263,7 @@ jobs:
240263
fail_ci_if_error: false
241264

242265
release-check:
243-
needs: [test-node, test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-webkit, test-webkit-webworker, test-electron-main, test-electron-renderer]
266+
needs: [test-node, test-deno, test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-webkit, test-webkit-webworker, test-electron-main, test-electron-renderer]
244267
runs-on: ubuntu-latest
245268
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
246269
outputs:

0 commit comments

Comments
 (0)