-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (35 loc) · 1.08 KB
/
master.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
name: master
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Deno
uses: denoland/setup-deno@v1
- name: Integration
run: |
deno cache mod.ts
deno test --allow-read --allow-run --allow-write --allow-net tests/integration
- name: Ensure Permissions Work
run: |
cd tests/integration/out-of-date-deps
deno run --allow-read='deps.ts' --allow-write='deps.ts' --allow-net='unpkg.com,x.nest.land,cdn.deno.land,api.deno.land,raw.githubusercontent.com,github.com,api.github.com' ../../../mod.ts update
linting:
# Doesn't need to be checked in all OS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Deno
uses: denolib/setup-deno@master
- name: Check Code FMT
run: deno fmt --check
- name: Check Code Lint
run: deno lint