-
Notifications
You must be signed in to change notification settings - Fork 19
39 lines (32 loc) · 889 Bytes
/
ci.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
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: download deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Disable AppArmor
if: ${{ matrix.os == 'ubuntu-latest' }}
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- name: check format
if: matrix.os == 'ubuntu-latest'
run: deno fmt --check
- name: check linting
if: matrix.os == 'ubuntu-latest'
run: deno lint
- name: run tests
run: deno task test
- name: pretend to publish package
run: deno publish --dry-run