diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index dca3e8f618..209d403983 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -36,7 +36,9 @@ jobs: - name: Install maven run: wget https://archive.apache.org/dist/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.zip && unzip -qq apache-maven-3.8.6-bin.zip - name: Set environment variables - run: export M2_HOME=$PWD/apache-maven-3.8.6 && export PATH=$M2_HOME/bin:$PATH && echo "MAVEN_OPTS='-Xmx1g -DENABLE_JACOCO=false'" > ~/.mavenrc + run: export M2_HOME=$PWD/apache-maven-3.8.6 && export PATH=$M2_HOME/bin:$PATH && echo "MAVEN_OPTS='-Xmx1g -DENABLE_JACOCO=true'" > ~/.mavenrc - name: Test with Maven run: mvn test -Dantlr.testinprocess=true -DJDK_SOURCE_ROOT=../runtime/Java/src -Dperformance.package= timeout-minutes: 60 + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 diff --git a/README.md b/README.md index 10b0047bdf..d0d86c5ca8 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Java 8+](https://img.shields.io/badge/java-8+-4c7e9f.svg)](http://java.oracle.com) [![License](https://img.shields.io/badge/license-BSD-blue.svg)](https://raw.githubusercontent.com/tunnelvisionlabs/antlr4/master/LICENSE.txt) [![GithubActions](https://github.com/daniellansun/antlr4/actions/workflows/build-test.yml/badge.svg?branch=opt)](https://github.com/daniellansun/antlr4/actions?query=branch%3Aopt++) +[![codecov](https://codecov.io/gh/daniellansun/antlr4/branch/opt/graph/badge.svg)](https://codecov.io/gh/daniellansun/antlr4) **ANTLR** (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It's widely used to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can build parse trees and also generates a listener interface (or visitor) that makes it easy to respond to the recognition of phrases of interest. diff --git a/.codecov.yml b/codecov.yml similarity index 69% rename from .codecov.yml rename to codecov.yml index 939525ac35..ff13581b31 100644 --- a/.codecov.yml +++ b/codecov.yml @@ -4,9 +4,11 @@ coverage: status: project: - default: false + default: + informational: true patch: - default: false + default: + informational: true comment: layout: "diff, flags, files, footer"