-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (45 loc) · 1.41 KB
/
mariadb.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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.6.2@sha256:0a620383fe05d20b3cc7510ebccc6749f83f1b0f97f3030d10dd2fa199371f07
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@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1
- 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