-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (42 loc) · 1.16 KB
/
integration-test.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
name: Integration tests
on:
push:
branches:
- '**'
- '!deploy'
pull_request:
branches:
- '**'
- '!deploy'
jobs:
build-and-test:
runs-on: ubuntu-latest
services:
mongo:
image: mongo
ports:
- 27017:27017
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Dependencies
run: sudo apt-get update && sudo apt-get install npm && sudo npm install -g pnpm
- name: Build with Maven
run: mvn -B compile assembly:single --file pom.xml
working-directory: gmcserver-server/
- name: pnpm dependencies
run: pnpm i
working-directory: gmcserver-integration-tests/
- run: cp gmcserver-integration-tests/server-config.properties gmcserver-server/config.properties
- name: Run backend
run: java -jar target/gmcserver*jar-with-dependencies.jar &
working-directory: gmcserver-server/
- name: Run tests
run: pnpm test
env:
URL: http://localhost:8080/api/v1
LOG_URL: http://localhost:8080
working-directory: gmcserver-integration-tests/