Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 40 additions & 7 deletions .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- '.github/badges/**'

jobs:
build:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -30,17 +30,36 @@ jobs:
- name: Check coding style
run: mvn -B -ntp checkstyle:check

depend-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven

- name: Dependency tree
run: mvn -B -ntp dependency:tree

- name: Dependency checking
run: mvn -B -ntp dependency:analyze-only

- name: Unit test and coverage
run: mvn -B -ntp test jacoco:report
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven

- name: Build with Maven
run: mvn -B -ntp -DskipTests=true -Dcheckstyle.skip package
- name: Unit test and coverage
run: mvn -B -ntp test jacoco:report jacoco-console-reporter:report

- name: Code Coverage Report
id: jacoco
Expand All @@ -50,15 +69,29 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 80
min-coverage-changed-files: 90

- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: jacoco-report
path: target/site/jacoco/

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven

- name: Build with Maven
run: mvn -B -ntp -DskipTests=true -Dcheckstyle.skip package

badges:
needs: build
needs: [lint, depend-checks, test, build]
runs-on: ubuntu-latest
steps:
- name: Create badge app token
Expand Down
44 changes: 38 additions & 6 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- main

jobs:
build:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -28,17 +28,36 @@ jobs:
- name: Check coding style
run: mvn -B -ntp checkstyle:check

depend-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven

- name: Dependency tree
run: mvn -B -ntp dependency:tree

- name: Dependency checking
run: mvn -B -ntp dependency:analyze-only

- name: Unit test and coverage
run: mvn -B -ntp test jacoco:report
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven

- name: Build with Maven
run: mvn -B -ntp -DskipTests=true -Dcheckstyle.skip package
- name: Unit test and coverage
run: mvn -B -ntp test jacoco:report jacoco-console-reporter:report

- name: Code Coverage Report
id: jacoco
Expand All @@ -48,10 +67,23 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 80
min-coverage-changed-files: 90

- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: jacoco-report
path: target/site/jacoco/

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven

- name: Build with Maven
run: mvn -B -ntp -DskipTests=true -Dcheckstyle.skip package
Loading