Skip to content

Commit

Permalink
fix gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
maximiliansoelch authored Sep 8, 2023
1 parent 427bd62 commit 603560f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/server-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Perform server tests
name: DB Server Test

on:
workflow_call:
Expand Down
38 changes: 13 additions & 25 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,6 @@ jobs:
- name: Print failed tests
if: failure()
run: cat tests.log | grep "Test >.* FAILED" || [[ $? == 1 ]]
- name: "Codacy: Report coverage"
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: build/reports/jacoco/test/jacocoTestReport.xml
if: (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) && (success() || failure()) && github.event.pull_request.user.login != 'dependabot[bot]'
- name: Annotate Server Test Results
uses: ashley-taylor/junit-report-annotations-action@f9c1a5cbe28479439f82b80a5402a6d3aa1990ac
if: always() && github.event.pull_request.user.login != 'dependabot[bot]'
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
path: build/test-results/test/*.xml
numFailures: 99
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
Expand All @@ -85,21 +72,22 @@ jobs:
if: success() || failure()
run: bash supporting_scripts/extract_number_of_server_starts.sh

server-tests-mysql:
needs: [ server-tests ]
uses: ./.github/workflows/server-tests.yml
with:
db-name: MySQL
db-spring-profile: mysql
timeout: 120

server-tests-postgres:
db-server-tests:
needs: [ server-tests ]
strategy:
matrix:
include:
- db-name: MySQL
db-spring-profile: mysql
timeout: 120
- db-name: PostgreSQL
db-spring-profile: postgres
timeout: 150
uses: ./.github/workflows/server-tests.yml
with:
db-name: PostgreSQL
db-spring-profile: postgres
timeout: 150
db-name: ${{ matrix.db-name }}
db-spring-profile: ${{ matrix.db-spring-profile }}
timeout: ${{ matrix.timeout }}

server-style:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 603560f

Please sign in to comment.