-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (39 loc) · 1022 Bytes
/
backend-test.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
name: Kerdy Backend Build Test
on:
workflow_dispatch:
pull_request:
types: [ opened, synchronize, reopened ]
branches:
- backend-main
defaults:
run:
working-directory: backend/emm-sale
jobs:
build:
name: Build with Gradle
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0.28
env:
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: kerdy
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: backend-main
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'temurin'
- name: Give permission for Gradle
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build