-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.27 KB
/
ci.yaml
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
name: CI
on:
push:
branches-ignore:
- main
env:
DENO_VERSION: "1.41.0"
NODE_VERSION: "20.11.1"
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: cache node_modules
id: node_modules_cache_id
uses: actions/cache@v4
with:
path: ~/.npm
key: node-v${{ env.NODE_VERSION }}-deps-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
node-v${{ env.NODE_VERSION }}-deps-
node-v${{ env.NODE_VERSION }}-
node-v
- name: install node modules
run: npm ci
working-directory: examples/repo
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- name: Cache Deno dependencies
uses: actions/cache@v4
with:
path: ~/.cache/deno
key: deno-v${{ env.DENO_VERSION }}-${{ hashFiles('**/deno.lock') }}
restore-keys: |
deno-v${{ env.DENO_VERSION }}-
deno-v
- name: test
run: deno task test
- name: publish test
run: deno publish --dry-run