Skip to content

Commit

Permalink
Test PR
Browse files Browse the repository at this point in the history
- Simplify "on"
- Remove commented codacy code
- Updated checkstyle.yml
  • Loading branch information
asturio committed Mar 29, 2024
1 parent 997ac5c commit 1a5f3fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 38 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
name: OpenPDF checkstyle
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
on: [ push, pull_request ]

jobs:
checkstyle_job:
runs-on: ubuntu-latest
name: Checkstyle job
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4
- name: Run check style
uses: dbelyaev/action-checkstyle@v1.2.1
uses: dbelyaev/action-checkstyle@v1
with:
checkstyle_config: 'checkstyle.xml'
reporter: 'github-pr-check'
Expand Down
33 changes: 2 additions & 31 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: OpenPDF maven build
on:
push:
branches: [ '*' ]
pull_request:
branches: [ master, 1.3-java8, 1.4-java11 ]
on: [ push, pull_request ]

permissions:
contents: read
Expand All @@ -27,29 +23,4 @@ jobs:
run: mvn -v; echo "** ls **"; pwd && ls -l

- name: Build with Maven
run: mvn -B install --file pom.xml

# codacy-coverage-reporter:
# runs-on: ubuntu-latest
# name: Java 17 and codacy-coverage-reporter
# steps:
# - uses: actions/checkout@v4
#
# - name: Setup java
# uses: actions/setup-java@v4
# with:
# distribution: temurin
# java-version: 17
#
# - name: Build with Maven
# run: mvn -B verify --file pom.xml
#
# - name: Run codacy-coverage-reporter
# uses: codacy/codacy-coverage-reporter-action@v1
# with:
# project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# # or
# # api-token: ${{ secrets.CODACY_API_TOKEN }}
# coverage-reports: ./openpdf/target/site/jacoco/jacoco.xml,./pdf-toolbox/target/site/jacoco/jacoco.xml,./openpdf-fonts-extra/target/site/jacoco/jacoco.xml
# # or a comma-separated list for multiple reports
# # coverage-reports: <PATH_TO_REPORT>, <PATH_TO_REPORT>
run: mvn -B install --file pom.xml

0 comments on commit 1a5f3fb

Please sign in to comment.