-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.24 KB
/
Copy pathci.yml
File metadata and controls
48 lines (44 loc) · 1.24 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
name: Run CI
on:
push:
workflow_dispatch:
jobs:
gradle:
timeout-minutes: 12
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 21
- name: Setup
uses: gradle/gradle-build-action@v2
- name: Assemble
run: ./gradlew assemble
# - name: Run tests
# run: ./gradlew check
#
# - name: Generate report
# if: github.ref == 'refs/heads/main'
# run: ./gradlew integrationTestCodeCoverageReport
#
# - name: Upload coverage report
# if: github.ref == 'refs/heads/main'
# uses: actions/checkout@v3
# with:
# repository: hamal-io/code-cov
# token: ${{ secrets.SERVICE_TOKEN }}
# fetch-depth: 0
# path: 'code-cov'
# run: |
# cd code-cov
# rm -rf *
# cp -r ${{github.workspace}}/app/hamal-mono/build/reports/jacoco/integrationTestCodeCoverageReport/html/* .
# git add -A
# git config user.email "codecov@hamal.io"
# git config user.name "codecov"
# git commit -m "${{ github.sha }}"
# git push -f