-
Notifications
You must be signed in to change notification settings - Fork 15
43 lines (35 loc) · 877 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
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/