-
-
Notifications
You must be signed in to change notification settings - Fork 38
65 lines (55 loc) · 1.45 KB
/
deno.yml
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
# syntax: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
name: Deno
on:
push:
paths-ignore:
- '**.md'
- '.vscode/**'
- 'bundles/**'
- 'dev/**'
- 'readme/**'
pull_request:
paths-ignore:
- '**.md'
- '.vscode/**'
- 'bundles/**'
- 'dev/**'
- 'readme/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
deno: ['v1.x']
node-version: ['16.x']
name: Deno ${{ matrix.deno }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
# install node to run denoify.land
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
# install deno to run the test
- name: Setup Deno
uses: denolib/setup-deno@v2
with:
deno-version: ${{ matrix.deno }}
- name: Install Dependencies
run: |
rm -f package.json
rm -f package-lock.json
npm init -y
npm i -D typescript
npm i -D denoify
npm i -D rimraf
- name: Denoify
run: |
node_modules/.bin/rimraf deno_lib
node_modules/.bin/denoify
node_modules/.bin/rimraf deno_lib/bundles deno_lib/dev
- name: Run Tests
run: |
deno --version
deno test -c tsconfig.deno.json test/deno/**