Skip to content

Commit

Permalink
github workflows changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSrSouza committed Jun 22, 2023
1 parent 0ef7695 commit ba90679
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
36 changes: 30 additions & 6 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ on:
- master

jobs:
build:
lint:
name: Lint Kotlin
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up JDK 17
Expand All @@ -18,18 +19,41 @@ jobs:
distribution: 'temurin'
java-version: 17

- name: Build project
- name: Run lintKotlin
uses: gradle/gradle-build-action@v2
with:
arguments: build --scan
arguments: lintKotlin --scan

clone-publish:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17

- name: Run tests
uses: gradle/gradle-build-action@v2
with:
arguments: test --scan

- name: Publish Test Results
uses: mikepenz/action-junit-report@v3
if: success() || failure()
with:
ref: ${{ github.event.pull_request.head.sha }}
report_paths: '**/build/test-results/test/TEST-*.xml'
summary: true

build-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Clone KotlinBukkitAPI-Repository
uses: actions/checkout@v2
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pullrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ jobs:
arguments: test --scan

- name: Publish Test Results
uses: mikepenz/action-junit-report@v2
uses: mikepenz/action-junit-report@v3
if: success() || failure()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
report_paths: '**/build/test-results/test/TEST-*.xml'
summary: true

0 comments on commit ba90679

Please sign in to comment.