feat: update to deno v2 #145
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: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
services: | |
rabbitmq: | |
image: rabbitmq:3-management | |
ports: | |
- 5672:5672 | |
- 15672:15672 | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
deno: [v1.x, canary] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Deno environment | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: ${{ matrix.deno }} | |
- name: Check formatting | |
run: deno fmt --check | |
- name: Lint | |
run: deno lint src/ module_test/ | |
- name: Run unit tests | |
run: deno test src/ | |
- name: Wait for rabbit | |
run: deno run --allow-net module_test/wait_for_server.ts | |
- name: Run module tests | |
run: deno test --allow-net module_test/ |