-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.26 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
name: 'Run tests on Deno'
on:
push:
paths:
- '.github/workflows/deno.yml'
- 'src/**'
- 'tests/**'
- 'types/**'
- 'package.json'
- 'pnpm-lock.yaml'
pull_request:
paths:
- '.github/workflows/deno.yml'
- 'src/**'
- 'tests/**'
- 'types/**'
- 'package.json'
- 'pnpm-lock.yaml'
workflow_dispatch:
jobs:
default:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
vite-version: ['vite@5', 'vite@6']
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 10
- uses: denoland/setup-deno@5e01c016a857a4dbb5afe9d0f9733cd472cba985 # v1.5.1
with:
deno-version: v1.x
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
name: Set up Deno cache
with:
path: |
~/.deno
~/.cache/deno
key: ${{ runner.os }}-deno-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install Vite
run: deno cache npm:${{ matrix.vite-version }} --allow-scripts
- name: Lint Source
run: deno lint --rules-exclude=no-explicit-any --ignore=node_modules **/*.ts
- name: Run Tests
run: deno run --allow-all --unstable-sloppy-imports npm:uvu tests