-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 814 Bytes
/
ci.yml
File metadata and controls
41 lines (32 loc) · 814 Bytes
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
env:
DB_PASSWORD: root
name: PR
on:
pull_request:
branches: [ main ]
types: [ opened, synchronize, edited ]
permissions:
contents: read
jobs:
Test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e 'CREATE DATABASE codelaptest;' -uroot -proot
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
shell: bash
- name: Common Test
run: ./gradlew common:test --info --fail-fast
shell: bash
- name: API Test
run: ./gradlew api:test --info --fail-fast
shell: bash