Skip to content

chore(deps): update gradle/actions action to v4 #992

chore(deps): update gradle/actions action to v4

chore(deps): update gradle/actions action to v4 #992

Workflow file for this run

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:4b812bbd9a025569fbe5a7a70e4a3cd3af53aa36621fecb1c2e108af2113450a
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Java JDK
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
java-version: 17
distribution: liberica
- name: Run Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
- name: Run Gradle check
run: ./gradle 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