Fixed Date field format in automated tests (#13) #75
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
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: Checkout Practice Software Testing repo | |
uses: actions/checkout@v4 | |
with: | |
repository: testsmith-io/practice-software-testing | |
path: practice-repo | |
- name: Start Practice Software Testing with Docker Compose | |
working-directory: practice-repo | |
run: docker compose -f docker-compose.yml up -d | |
- name: Sleep for 60 seconds | |
run: sleep 60s | |
shell: bash | |
- name: Create and Seed Database | |
working-directory: practice-repo | |
run: | | |
docker compose 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: 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 |