-
-
Notifications
You must be signed in to change notification settings - Fork 116
39 lines (31 loc) · 768 Bytes
/
tests.yml
File metadata and controls
39 lines (31 loc) · 768 Bytes
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
name: Tests
on: [push, pull_request]
jobs:
test:
name: Run tests
strategy:
matrix:
deno_version:
- 2.5.x
- latest
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Deno environment
uses: denoland/setup-deno@v2
with:
deno-version: ${{ matrix.deno_version }}
- name: Verify formatting
if: matrix.os == 'ubuntu-latest'
run: deno fmt --check
- name: Run linter
run: deno lint
- name: Run tests
run: deno task test
- name: Test upgrade
run: deno run -A cli.ts upgrade