-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 1.15 KB
/
fastify.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: Fastify adapter tests
on:
push:
branches: [main]
pull_request: {}
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
fastify-version: [3.x, 4.x]
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
# We can't use `cache: npm` because setup-node doesn't support our monorepo setup
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Prepare local dependency
run: |
npm install
npm run build
npm link
working-directory: node-core
- name: Install dependencies & link local dependency
run: |
npm install
npm install fastify@${{ matrix.fastify-version }}
npm link judoscale-node-core
working-directory: fastify
- name: Run tests
run: npm test
working-directory: fastify