-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.2 KB
/
promotion-norifier-backend-ci.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
name: promotion-notifier-backend-ci
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: ./promotion-notifier-backend
- name: Build with Gradle
run: ./gradlew build -i
working-directory: ./promotion-notifier-backend
- name: Run integration tests
run: ./gradlew integTest -i
working-directory: ./promotion-notifier-backend
- name: Generate coverage report
run: ./gradlew codeCoverageReport
working-directory: ./promotion-notifier-backend
- name: Upload coverage report
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${{secrets.CODECOV_TOKEN}}
working-directory: ./promotion-notifier-backend