Skip to content

Bump codecov/codecov-action from 2.0.2 to 4.3.0 #47

Bump codecov/codecov-action from 2.0.2 to 4.3.0

Bump codecov/codecov-action from 2.0.2 to 4.3.0 #47

Workflow file for this run

name: Main Build Script
on:
push:
branches:
- master
paths-ignore:
- '**/*.md'
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
run: ./gradlew build jacocoTestReport
- name: Check code coverage with Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}