added footer link to check footer verifying that the message is displ… #69
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Java CI with Maven | |
on: | |
push: | |
branches: | |
- main | |
- issue-* | |
pull_request: | |
branches: | |
- main | |
- issue-* | |
permissions: | |
statuses: write | |
checks: write | |
contents: write | |
pull-requests: write | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Install Java and Maven | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
cache: maven | |
- name: Start Practice Software Testing ToolShop Website with Docker Compose | |
run: docker compose -f docker-compose-toolshop.yml up -d | |
- name: Sleep for 60 seconds | |
run: sleep 60s | |
shell: bash | |
- name: Create and Seed Database | |
run: docker compose -f docker-compose-toolshop.yml exec laravel-api php artisan migrate:fresh --seed | |
- name: Build Project and run tests | |
run: mvn clean install | |
- name: Upload screenshots | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-screenshots | |
path: screenshots | |
- name: Stop Practice Software Testing ToolShop Website | |
run: docker compose -f docker-compose-toolshop.yml down --remove-orphans | |
- name: Test Report | |
uses: dorny/test-reporter@v2 | |
if: success() || failure() | |
with: | |
name: Test Results | |
path: ${{ github.workspace }}/target/surefire-reports/TEST-TestSuite.xml | |
reporter: java-junit | |
java-version: 17 |