-
Notifications
You must be signed in to change notification settings - Fork 11
50 lines (37 loc) · 1.22 KB
/
e2e.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
50
name: E2E tests
on: [pull_request]
env:
NGROK_AUTH: ${{ secrets.NGROK_AUTH }}
jobs:
e2e-test-job:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Build the docker-compose stack
run: docker-compose -f docker-compose.yml up -d
- name: Check running Docker containers
run: docker ps -a
- name: Ping Docker network localhost:8282
run: ping localhost -p 8282 -c 4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm install
- name: Run e2e tests (Cypress)
run: npm run cypress:run