-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (39 loc) · 1.29 KB
/
tests.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
name: ALGOHUB CI
on:
pull_request:
branches:
- develop
permissions:
contents: read
jobs:
run-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: JDK 21 Setup
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- uses: mirromutth/[email protected]
with:
host port: 3306
container port: 3306
mysql database: 'algohub'
mysql root password: ${{ secrets.DB_PASSWORD }}
- name: Create mysql.yml
run: echo "${{ secrets.MYSQL_YML_TEST }}" | base64 --decode > src/main/resources/mysql.yml
- name: Create aws.yml
run: echo "${{ secrets.AWS_YML }}" | base64 --decode > src/main/resources/aws.yml
- name: Create jwt.yml
run: echo "${{ secrets.JWT_YML }}" | base64 --decode > src/main/resources/jwt.yml
- name: Create application.yml
run: echo "${{ secrets.APPLICATION_YML }}" | base64 --decode > src/main/resources/application.yml
- name: Test YML
run: ls -l src/main/resources
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Test with Gradle
uses: gradle/[email protected]
with:
arguments: test