-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.04 KB
/
nhgc.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
name: nhgc
on:
push:
paths:
- 'nhgc/**'
tags:
- '*'
branches:
- '*'
pull_request:
paths:
- 'nhgc/**'
branches: [main]
jobs:
test:
name: ${{ matrix.config.kind }} ${{ matrix.config.os }}
runs-on: ubuntu-latest
environment: CI
strategy:
matrix:
deno-version: [1.42.4]
steps:
- name: Git Checkout NHGC
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Use Deno Version ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}
- name: Lint Deno Module
working-directory: nhgc
run: |
deno fmt --check --ignore=docs/
- name: Test Deno Module
working-directory: nhgc
env:
TMPDIR: ${{ runner.temp }}
CI: true
NHG_APIKEY: ${{ secrets.NHG_APIKEY }}
NHG_URL: ${{ secrets.NHG_URL }}
run: |
deno test --allow-all --unstable --parallel --fail-fast --coverage=./cov