Skip to content

chore(deps): update motoserver/moto docker tag to v5.0.23 #579

chore(deps): update motoserver/moto docker tag to v5.0.23

chore(deps): update motoserver/moto docker tag to v5.0.23 #579

Workflow file for this run

name: Kotlin test
on: pull_request
jobs:
check:
runs-on: ubuntu-latest
outputs:
api: ${{ steps.changes.outputs.api }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: check diff
uses: dorny/paths-filter@v3.0.2
id: changes
with:
filters: |
api:
- 'gradle/libs.versions.toml'
- 'build.gradle.kts'
- 'backend/api/src/main/**'
- 'backend/api/build.gradle.kts'
- 'backend/domains/src/main/**'
- 'backend/domains/build.gradle.kts'
- 'backend/infrastructure/src/main/**'
- 'backend/infrastructure/build.gradle.kts'
- 'docker/sqldef/volume/schema.sql'
test:
runs-on: ubuntu-latest
needs: [check]
if: ${{ needs.check.outputs.api == 'true' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 17
- name: prepare
shell: sh
run: |
make setup-backend
- name: Setup and execute Gradle 'test' task
id: lint
uses: gradle/actions/setup-gradle@v3
with:
arguments: detekt
- name: Check detekt file exists
id: checkDetektFile
run: |
if [ -f "build/reports/detekt/detekt.sarif" ]; then
echo "exists=true" >> $GITHUB_ENV
else
echo "exists=false" >> $GITHUB_ENV
fi
- name: Unit test
id: unitTest
uses: gradle/actions/setup-gradle@v3
with:
arguments: test
- uses: github/codeql-action/upload-sarif@v3
if: ${{ failure() && steps.lint.conclusion == 'failure' && steps.checkDetektFile.outputs.exists == 'true' }}
with:
sarif_file: build/reports/detekt/detekt.sarif