-
Notifications
You must be signed in to change notification settings - Fork 521
54 lines (42 loc) · 1.35 KB
/
gradle.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
name: Java CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Set up repository
uses: actions/checkout@main
- name: Set up repository
uses: actions/checkout@main
with:
ref: master
- name: Merge to master
run: git checkout --progress --force ${{ github.sha }}
- name: Run repository-wide tests
if: runner.os == 'Linux'
working-directory: ${{ github.workspace }}/.github
run: ./run-checks.sh
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK 11
uses: actions/setup-java@v1
with:
java-version: '11'
java-package: jdk+fx
- name: Build and check with Gradle
run: ./gradlew check coverage
- name: Validate codecov.yml
if: runner.os == 'Linux'
run: curl --data-binary @codecov.yml https://codecov.io/validate
- name: Upload coverage reports to Codecov
env:
slug: AY2324S2-CS2103T-W12-4/tp
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: runner.os == 'Linux'
uses: codecov/[email protected]
with:
verbose: true
fail_ci_if_error: false