-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (47 loc) · 1.53 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
54
55
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.1.2@sha256:77e8ad8ae65e4bf59da8e0c078a086fce71a5cff21ae3c72e55573f3fde33580
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@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # v1.1.0
- name: Setup Java JDK
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
java-version: 17
distribution: liberica
- name: Run Gradle check
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2.9.0
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
with:
arguments: check