-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (62 loc) · 2.53 KB
/
Copy pathci.yml
File metadata and controls
73 lines (62 loc) · 2.53 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
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "Develop" branch
push:
branches: [ "Feature/*", "Feature/*/*", "Bugfix", "Hotfix", "Refactor" ]
#pull_request:
# branches: [ "Develop" ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
token: ${{ secrets.TOKEN }}
submodules: true
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin' # https://github.com/actions/setup-java
- name: Hi
run: |
echo "\
_____ U ___ u ____ U ___ u _ ____ __ __
|_ \" _| \\/\"_ \/ | _\"\\ \\/\"_ \/U /\"\\ uU | _\"\\ u \\ \\ / /
| | | | | |/| | | | | | | | \\/ _ \\/ \\| |_) |/ \\ V /
/| |\\.-,_| |_| |U| |_| |\\.-,_| |_| | / ___ \\ | _ < U_|\"|_u
u |_|U \\_)-\\___/ |____/ u \\_)-\\___/ /_/ \\_\\ |_| \\_\\ |_|
_// \\\\_ \\\\ |||_ \\\\ \\\\ >> // \\\\_.-,//|(_
(__) (__) (__) (__)_) (__) (__) (__)(__) (__)\_) (__)"
shell: bash
## create application-secret.yml
# - name: make application-secret.yml
# #if: contains(github.ref, 'develop')
# run: |
# cd ./src/main/resources
# touch ./application-secret.yml
# echo "${{ secrets.SECRET_YML }}" > ./application-secret.yml
# shell: bash
# - name: make application.yml for test
# #if: contains(github.ref, 'develop')
# run: |
# mkdir -p ./src/test/resources
# cd ./src/test/resources
# touch ./application.yml
# echo "${{ secrets.TEST_YML }}" > ./application.yml
# shell: bash
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
shell: bash
- name: Build with Gradle
run: ./gradlew clean build -x test
shell: bash
- name: Test with Gradle
run: ./gradlew test