Skip to content

🔨 refactor build.yml #153

🔨 refactor build.yml

🔨 refactor build.yml #153

Workflow file for this run

name: Build
on: push
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Cache Gradle Cache
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-cache
- name: Cache Gradle Wrapper
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: actions/cache@v2
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-wrapper
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: 11
- name: Build Project
run: |
# Add the Gradle build command here
./gradlew build
- name: Upload Code Coverage
uses: codecov/codecov-action@v2
with:
directory: ./build/jacoco
verbose: true