Skip to content

Commit

Permalink
refactored ci file
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza committed Oct 12, 2021
1 parent 787d0a8 commit 7d10d58
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/ci.yml
Expand Up @@ -9,19 +9,10 @@ on:
branches:
- '**'
jobs:
check-gradlewrapper:
name: Gradle Wrapper
check-lint:
name: Lint
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v2
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
check-build:
name: Gradle Build
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v2
Expand All @@ -40,16 +31,21 @@ jobs:
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Run tests
run: ./gradlew --no-daemon clean jacocoTestReport
- name: Report test coverage
run: |
pip install --user codecov
codecov
check-lint:
name: Lint
- name: Spotless check
run: ./gradlew spotlessCheck --no-daemon
check-gradlewrapper:
name: Gradle Wrapper
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v2
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
check-build:
name: Gradle Build
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v2
Expand All @@ -68,5 +64,9 @@ jobs:
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Spotless check
run: ./gradlew spotlessCheck --no-daemon
- name: Run tests
run: ./gradlew --no-daemon clean jacocoTestReport
- name: Report test coverage
run: |
pip install --user codecov
codecov

0 comments on commit 7d10d58

Please sign in to comment.