-
-
Notifications
You must be signed in to change notification settings - Fork 95
46 lines (37 loc) · 965 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
40
41
42
43
44
45
46
name: ci
on: [push, pull_request]
jobs:
build:
name: ubuntu-latest
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
mongo: ["4.0", "4.2", "4.4", "5.0", "6.0"]
steps:
- name: Setup Environment
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Clone repository
uses: actions/checkout@v2
- name: Install Deno
uses: denolib/setup-deno@master
with:
deno-version: 1.x.x
- name: Log versions
run: |
deno --version
# Lint & Format
- name: Lint & Format TS
run: |
deno lint --ignore=./bson/bson.d.ts
deno fmt --check
# Start MongoDB
- name: Start MongoDB (Linux)
uses: wbari/[email protected]
with:
mongoDBVersion: ${{ matrix.mongo }}
# Tests
- name: Test TS
run: deno test -A