generated from UMM-CSci-3601/3601-iteration-template
-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (37 loc) · 1.05 KB
/
e2e.yaml
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: End-to-End
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
mongo:
image: mongo:3.4.23
ports:
- '27017-27019:27017-27019'
steps:
- uses: actions/checkout@v1
- name: Install Mongo Tools
run: sudo apt-get install mongo-tools
- name: Seed database
run: ./mongoseed.sh
working-directory: ./database
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install dependencies (npm ci)
run: npm ci
working-directory: ./client
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Start server and run e2e tests
run: cd server && ./gradlew run & cd client && npm run e2e -- --protractor-config=e2e/protractor-ci.conf.js