-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (33 loc) · 1.25 KB
/
test.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
name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew test --no-daemon
- name: Grant execute permission for gradlew
run: chmod +x scala-version-matrix/gradlew
- name: Run Gradle Example
run: ./gradle-example/gradlew clean test --no-daemon -p ./gradle-example
- name: Run Maven example
run: mvn clean test --file ./maven-example/pom.xml -B
- name: Run scala matrix test with Gradle
run: ./gradlew build --no-daemon && ./scala-version-matrix/gradlew clean test --no-daemon -PallScalaVersion -p ./scala-version-matrix
- name: Upload coverage to Codecov
uses: codecov/[email protected]
if: github.ref == 'refs/heads/main'
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./build/reports/jacoco/test/jacocoTestReport.xml
flags: unittests
name: codecov-scalatest-junit-runner
yml: ./codecov.yml
fail_ci_if_error: false