-
Notifications
You must be signed in to change notification settings - Fork 282
42 lines (37 loc) · 1002 Bytes
/
api-tests.yml
File metadata and controls
42 lines (37 loc) · 1002 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
42
name: API tests
permissions:
contents: read
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
pip install dredd_hooks
pip install 'PyYAML>=5.1'
pip install 'six>=1.13.0'
- name: Install Node.js dependencies
run: yarn install --ignore-scripts
- name: Test with Dredd
run: yarn test-api