-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (45 loc) · 1.29 KB
/
maven-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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: UI Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
id-token: write
pages: write
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: checkout of the repo
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Docker cache
uses: satackey/action-docker-layer-caching@v0.0.11
continue-on-error: true
- name: setup Hub and nodes and execute the script
run: docker-compose -f "docker-compose.yml" up -d --build
- name: wait for the test containers to exit
run: |
chmod a+x wait_for_exit.sh
./wait_for_exit.sh app_test
shell: bash
- name: Deploy the test output
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output/reports
- name: Stop the grid setup
if: always()
run: |
docker-compose -f "docker-compose.yml" down