Skip to content

Build(deps): Bump ajv and redoc in /api-doc #6549

Build(deps): Bump ajv and redoc in /api-doc

Build(deps): Bump ajv and redoc in /api-doc #6549

Workflow file for this run

name: Server test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
server-junit:
runs-on: ubuntu-22.04
timeout-minutes: 60
strategy:
matrix:
java: [11]
steps:
- uses: actions/checkout@v2
- id: skip_check
uses: fkirc/[email protected]
with:
cancel_others: 'true'
skip_after_successful_duplicate: 'true'
paths_ignore: '["client-html/**", "api-doc/**", "api-test/**"]'
- name: Setup timezone
uses: zcong1993/[email protected]
with:
timezone: "Australia/Sydney"
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Cache
uses: actions/cache@v2
with:
path: |
**/node_modules
~/.gradle/caches
~/.gradle/wrapper
key: ${{ matrix.java }}-node-${{ hashFiles('**/yarn.lock') }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ matrix.java }}-
- name: Types unit tests
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
run: ./gradlew types:test --stacktrace -Duser.language=en -Duser.country=AU
# - name: Build types coverage report
# if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
# run: ./gradlew types:jacocoTestReport
#
# - name: Upload types coverage to Codecov
# if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# flags: types
# directory: types/build/reports/jacoco/test
- name: Server unit tests
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
run: ./gradlew server:test --stacktrace -Duser.language=en -Duser.country=AU
# - name: Build server coverage report
# if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
# run: ./gradlew server:jacocoTestReport
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v1
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
with:
files: '**/test-results/**/*.xml'
# - name: Upload server coverage to Codecov
# if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# flags: junit
# directory: server/build/reports/jacoco/test
# - name: Upload coverage to codeclimate
# uses: paambaati/[email protected]
# env:
# CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
# with:
# workingDirectory: '${{github.workspace}}/server/src/main/java'
# coverageLocations: '${{github.workspace}}/**/build/reports/jacoco/test/jacocoTestReport.xml:jacoco'
server-integrations:
runs-on: ubuntu-22.04
timeout-minutes: 60
strategy:
matrix:
java: [11]
steps:
- uses: ankane/setup-mariadb@v1
with:
mariadb-version: "10.11"
database: angelTest_trunk
- uses: actions/checkout@v2
- id: skip_check
uses: fkirc/[email protected]
with:
cancel_others: 'true'
skip_after_successful_duplicate: 'true'
paths_ignore: '["client-html/**", "api-doc/**", "api-test/**"]'
- name: Setup timezone
uses: zcong1993/[email protected]
with:
timezone: "Australia/Sydney"
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Cache
uses: actions/cache@v2
with:
path: |
**/node_modules
~/.gradle/caches
~/.gradle/wrapper
key: ${{ matrix.java }}-node-${{ hashFiles('**/yarn.lock') }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ matrix.java }}-
- name: Integration tests
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
run: ./gradlew server:integration -PdbUrl=jdbc:mariadb://localhost:3306/angelTest_trunk --stacktrace -Duser.language=en -Duser.country=AU
# - name: Build coverage report
# if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
# run: ./gradlew server:jacocoTestReport
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v1
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
with:
files: '**/test-results/**/*.xml'
# - name: Upload coverage to Codecov
# if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# flags: integration
# directory: server/build/reports/jacoco/test
# - name: Upload coverage to codeclimate
# uses: paambaati/[email protected]
# env:
# CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
# with:
# workingDirectory: '${{github.workspace}}/server/src/main/java'
# coverageLocations: '${{github.workspace}}/**/build/reports/jacoco/test/jacocoTestReport.xml:jacoco'