-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.08 KB
/
test.yml
File metadata and controls
42 lines (40 loc) · 1.08 KB
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: Tests
on:
pull_request:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Clone the axe-api repository
run: git clone https://github.com/axe-api/axe-api.git
- name: Setting the dev-kit files
run: cp -R .env dev-kit.ts dev-kit axe-api/
- name: Installing the dependencies
run: |
cd axe-api
git checkout -b playground
git pull origin playground
npm install --production=false
npm install -g typescript
npm i -g ts-node-dev
npm i -g knex
- name: DB migration
run: |
cd axe-api/dev-kit
knex --esm migrate:latest
- name: Run the application
run: |
set -e
cd axe-api
timeout 10 npm run dev-kit || [[ $? -eq 124 ]]