-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (47 loc) · 1.51 KB
/
test-local.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
name: CI-LOCAL TEST
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout OpenELIS Global
uses: actions/checkout@v2
with:
repository: I-TECH-UW/OpenELIS-Global-2
ref: CI
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Spin UP OpenELIS server
run: |
docker-compose up -d
- name: Sleep for 10 minutes
run: sleep 10m
shell: bash
- name: Check containers
run: docker ps
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Checkout openelis qaframework
uses: actions/checkout@v2
with:
repository: ${{github.repository}}
- name: Start the Remote web driver in docker
run: |
docker-compose up -d chrome
- name: Sleep for 3 minutes
run: sleep 3m
shell: bash
- name: Run and Publish Openelis QA
run: |
echo "cucumber.publish.enabled=true" > src/test/resources/cucumber.properties
mvn clean install -DskipTests=true
cp -f src/test/resources/test-local.properties src/test/resources/test.properties
mvn test -Dcucumber.filter.tags='@login'
mvn test -Dcucumber.filter.tags='@order'