Repository navigation
77 lines (66 loc) · 2.72 KB
/
Copy pathpull_request.yml
File metadata and controls
77 lines (66 loc) · 2.72 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: ReviewTwits Pull Rquest
on:
pull_request_target:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout feature branch
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: echo README
run: cat README.md
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Make application.properties
run: |
cd ./src/main/resources
echo "${{ secrets.DB_SECRET_INFORMATION }}" >> ./application.properties
cat ./application.properties
shell: bash
- name: Make email.properties
run: |
cd ./src/main/resources
echo "${{ secrets.EMAIL_CONFIG_INFO }}" >> ./email.properties
cat ./email.properties
shell: bash
- name: Make oauth.properties
run: |
cd ./src/main/resources
echo "${{ secrets.OAUTH_KEY }}" >> ./oauth.properties
cat ./oauth.properties
shell: bash
- name: Make s3.properties
run: |
cd ./src/main/resources
echo "${{ secrets.AWS_S3 }}" >> ./s3.properties
cat ./s3.properties
shell: bash
- name: Setup Redis
run: sudo apt-get install -y redis-server
- name: Install Google Chrome for Selenium
run: |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
# - name : Setup MariaDB
# uses: getong/mariadb-action@v1.1
# with:
# character set server: 'utf8mb4' # Optional, default value is 'utf8mb4'. The '--character-set-server' option for mysqld
# mariadb version: '10.6.8' # Optional, default value is "latest". The version of the MariaDB
# mysql database: 'reviewtwits' # Optional, default value is "test". The specified database which will be create
# # mysql root password: ${{ secrets.MARIADB_PASSWORD }} # Required if "mysql user" is empty, default is empty. The root superuser password
# mysql user: ${{ secrets.MARIADB_USERNAME}} # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Can use secrets, too
# mysql password: ${{ secrets.MARIADB_PASSWORD }} # Required if "mysql user" exists. The password for the "mysql user"
- name: Build with Gradle
env:
auto-ddl: create
run: ./gradlew clean build