Skip to content

Support Deno 2

Support Deno 2 #879

Workflow file for this run

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: 2.x.x
- name: Log versions
run: |
deno --version
# Lint & Format
- name: Lint & Format TS
run: |
deno lint
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