style: add type #159
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: ubuntu-latest | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
mongo: ["4.4"] | |
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: denoland/setup-deno@v2 | |
with: | |
deno-version: 2.x | |
- name: Log versions | |
run: | | |
deno --version | |
# Lint | |
- name: Lint TS | |
run: deno lint | |
# Start MongoDB | |
- name: Start MongoDB (Linux) | |
uses: wbari/[email protected] | |
with: | |
mongoDBVersion: ${{ matrix.mongo }} | |
# Tests | |
- name: Test Mongodb | |
env: | |
BASE_URL: mongodb://localhost:27017/test | |
run: deno task test | |
- name: Publish package | |
run: deno publish |