-
-
Notifications
You must be signed in to change notification settings - Fork 31
49 lines (42 loc) · 949 Bytes
/
test.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
44
45
46
47
48
49
name: Run Tests
on:
pull_request:
push:
branches:
- main
concurrency:
group: test-${{ github.ref_name }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
services:
rabbit:
image: rabbitmq:management-alpine
env:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- 5672:5672
- 15672:15672
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Node.js LTS
uses: actions/[email protected]
with:
node-version: lts/*
registry-url: "https://npm.pkg.github.com"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run Tests
run: npm test
env:
AMQP_ADDRESS: rabbit
- name: Check linting
run: npm run lint