chore(deps): update mariadb:11.5.2 docker digest to 604d5fd (#394) #1085
This file contains 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: Test MariaDB | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
test: | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
services: | |
mariadb: | |
image: mariadb:11.5.2@sha256:604d5fd88bbcbeae8f01ca6f01bb200c2e56071c036b0b47d6eee2a95a1304c9 | |
ports: | |
- 3306:3306 | |
env: | |
MARIADB_USER: spring | |
MARIADB_PASSWORD: test | |
MARIADB_DATABASE: discordmodbot | |
MARIADB_ROOT_PASSWORD: test | |
options: >- | |
--health-cmd "/usr/local/bin/healthcheck.sh --su-mysql --connect --innodb_initialized" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Java JDK | |
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
with: | |
java-version: 17 | |
distribution: liberica | |
- name: Run Setup Gradle | |
uses: gradle/actions/setup-gradle@473878a77f1b98e2b5ac4af93489d1656a80a5ed # v4.2.0 | |
- name: Run Gradle check | |
run: ./gradlew check | |
env: | |
SPRING_DATASOURCE_URL: jdbc:mariadb://127.0.0.1:3306/discordmodbot | |
SPRING_DATASOURCE_USERNAME: spring | |
SPRING_DATASOURCE_PASSWORD: test | |
SPRING_DATASOURCE_DRIVERCLASSNAME: org.mariadb.jdbc.Driver |