-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from jetbrains-academy/arseniy/improve-github-…
…workflows Improve GitHub workflows
- Loading branch information
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|