Skip to content

Commit

Permalink
Merge pull request #1 from thananauto/test-yml
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
thananauto authored Dec 22, 2023
2 parents 225dbc2 + f9b60dc commit 1a8bfe7
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions .github/workflows/maven-test.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
---
name: UI Test

on:
push:
branches:
- main
branches: [ "main" ]
pull_request:
branches:
- main

branches: [ "main" ]

permissions:
id-token: write
pages: write

jobs:
build:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

permissions:
contents: write

steps:
- name: checkout of the repo
Expand All @@ -26,8 +23,8 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: temurin
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Docker cache
Expand All @@ -39,18 +36,20 @@ jobs:

- name: wait for the test containers to exit
run: |
chmod a+x wait_for_exit.sh
./wait_for_exit.sh app_test
chmod a+x wait_for_exit.sh
./wait_for_exit.sh app_test
shell: bash

- name: Stop the grid setup
if: always()
run: |
docker-compose -f "docker-compose.yml" down
- name: Deploy the html result
- 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
publish_dir: ./output/reports

- name: Stop the grid setup
if: always()
run: |
docker-compose -f "docker-compose.yml" down

0 comments on commit 1a8bfe7

Please sign in to comment.