Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve GitHub workflows #14

Merged
merged 2 commits into from
Dec 1, 2023
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
12 changes: 9 additions & 3 deletions .github/workflows/gradle-build-with-detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,26 @@ name: Gradle Build With Detekt

on: [push, pull_request]

# Allow cancelling all previous runs for the same branch
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3.0.0
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3.0.0
uses: actions/setup-java@v3
with:
java-version: 17
distribution: liberica
- name: Gradle Wrapper Validation
uses: gradle/[email protected]
- uses: gradle/gradle-build-action@v2.1.5
- uses: gradle/gradle-build-action@v2
with:
arguments: build --stacktrace -PrunDetekt

12 changes: 9 additions & 3 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,26 @@ name: Gradle Build

on: [push, pull_request]

# Allow cancelling all previous runs for the same branch
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3.0.0
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3.0.0
uses: actions/setup-java@v3
with:
java-version: 17
distribution: liberica
- name: Gradle Wrapper Validation
uses: gradle/[email protected]
- uses: gradle/gradle-build-action@v2.1.5
- uses: gradle/gradle-build-action@v2
with:
arguments: build --stacktrace

Loading