Skip to content

refactor: move to deno 2.0 and refactor whole project to new approaches #683

refactor: move to deno 2.0 and refactor whole project to new approaches

refactor: move to deno 2.0 and refactor whole project to new approaches #683

Workflow file for this run

name: Tests
on:
push:
workflow_dispatch:
pull_request:
jobs:
node-tests:
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm i -g pnpm
- name: install dependencies
run: pnpm install
- name: build
run: pnpm run build
- name: tests
run: pnpm run test
deno-tests:
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
runs-on: ubuntu-latest
services:
mongodb:
image: mongo
options: >-
--health-cmd "echo 'db.runCommand("ping").ok' | mongosh --quiet"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 27017:27017
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Setup Deno
uses: maximousblk/setup-deno@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm i -g pnpm
- run: pnpm install
- run: pnpm build
- name: tests
run: pnpm run test:deno