-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 922 Bytes
/
Copy pathpact-tests.yml
File metadata and controls
41 lines (32 loc) · 922 Bytes
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
name: Pact Contract Tests
on:
push:
branches: [main, fix/pact-contract-tests]
pull_request:
branches: [main]
jobs:
contract-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run Consumer Contract Tests
run: npm run test:consumer
- name: Run Provider Contract Tests
run: npm run test:provider
- name: Upload Pact files
uses: actions/upload-artifact@v4
with:
name: pact-files-node-${{ matrix.node-version }}
path: __tests__/contract/pacts/
retention-days: 30