-
Notifications
You must be signed in to change notification settings - Fork 16
86 lines (66 loc) · 1.93 KB
/
Copy pathruntime-deno.yml
File metadata and controls
86 lines (66 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Runtime Compatibility (Deno)
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
test_core:
name: auth0-auth-js
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 22
package-manager-cache: false
- name: Update npm
run: npm install -g npm@latest
- name: Install dependencies
run: npm install
- name: Build auth0-auth-js
run: npm run build -w @auth0/auth0-auth-js
- name: Test
run: deno run --allow-all ../../node_modules/vitest/vitest.mjs run
working-directory: packages/auth0-auth-js
test:
name: ${{ matrix.package }}
runs-on: ubuntu-latest
needs: test_core
strategy:
matrix:
package: [auth0-server-js, auth0-api-js]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 22
package-manager-cache: false
- name: Update npm
run: npm install -g npm@latest
- name: Install dependencies
run: npm install
- name: Build auth0-auth-js
run: npm run build -w @auth0/auth0-auth-js
- name: Build ${{ matrix.package }}
run: npm run build -w @auth0/${{ matrix.package }}
- name: Test
run: deno run --allow-all ../../node_modules/vitest/vitest.mjs run
working-directory: packages/${{ matrix.package }}