Skip to content

Merge pull request #346 from commonmark/issue-166-text-content-render… #303

Merge pull request #346 from commonmark/issue-166-text-content-render…

Merge pull request #346 from commonmark/issue-166-text-content-render… #303

Workflow file for this run

# See https://docs.github.com/en/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 17, 21]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
- name: Build
run: mvn -B package javadoc:javadoc
coverage:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
- name: Build with coverage
run: mvn -B -Pcoverage clean test jacoco:report-aggregate
- name: Publish coverage
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
android-compatibility:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
- name: Android Lint checks
run: cd commonmark-android-test && ./gradlew :app:lint