diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 68b5f64..359669a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,13 +10,13 @@ name: Java CI with Maven on: push: - branches: [ "master" ] + branches: [ "master", "main" ] pull_request: - branches: [ "master" ] + branches: [ "master", "main" ] jobs: build: - if: "!contains(github.event.head_commit.message, '[skip-ci]')" + if: ${{ !contains(github.event.head_commit.message, '[skip-ci]') }} runs-on: ubuntu-latest steps: @@ -27,7 +27,15 @@ jobs: java-version: '17' distribution: 'adopt' cache: maven + - name: Build with Maven run: mvn -B package --file pom.xml + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: FourteenBrush/MathExpressionParser + - name: Trigger Jitpack build run: curl "https://jitpack.io/com/github/FourteenBrush/MathExpressionParser/${GITHUB_SHA:0:10}/build.log" diff --git a/README.md b/README.md index f21794d..272cb91 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # MathExpressionParser ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/FourteenBrush/MathExpressionParser/build.yml) +![Code Coverage](https://img.shields.io/codecov/c/github/FourteenBrush/MathExpressionParser) ![GitHub License](https://img.shields.io/github/license/FourteenBrush/MathExpressionParser) [![GitHub release](https://img.shields.io/github/v/release/FourteenBrush/MathExpressionParser)](https://github.com/FourteenBrush/MathExpressionParser/releases) @@ -8,7 +9,7 @@ A lightweight Java library for parsing and evaluating mathematical expressions. ## Dependency -There is both a Maven and Gradle dependency, which work with JitPack. In order to use them, replace `Tag` with the appropriate version which you can find on the +Don't forget to replace `Tag` with the appropriate version, which you can find on the [releases page](https://github.com/FourteenBrush/MathExpressionParser/releases) or on top of this file. ### Maven: