-
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.
Fix refresh dependency behavior and reduce fetch-depth (#185)
- Loading branch information
1 parent
6937be3
commit e57a074
Showing
13 changed files
with
20 additions
and
27 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
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
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
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
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 |
---|---|---|
|
@@ -56,7 +56,6 @@ runs: | |
- name: Check out repository | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
lfs: ${{ inputs.download-lfs-files }} | ||
|
||
- name: Set up Gradle with version ${{ inputs.gradle-version }} | ||
|
@@ -71,7 +70,7 @@ runs: | |
# sonar.branch.autoconfig.disabled is necessary for autocreation of projects on Sonarcloud to work | ||
- name: Assess code quality | ||
if: ${{ inputs.sonar-token != '' && inputs.sonar-organization != '' }} | ||
run: ./gradlew -Dsonar.branch.autoconfig.disabled=true -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=${{ inputs.sonar-organization }} --info --stacktrace sonarqube ${{ inputs.gradle-refresh-dependencies && '--refresh-dependencies' || '' }} | ||
run: ./gradlew -Dsonar.branch.autoconfig.disabled=true -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=${{ inputs.sonar-organization }} --info --stacktrace sonarqube ${{ inputs.gradle-refresh-dependencies == 'true' && '--refresh-dependencies' || '' }} | ||
shell: bash | ||
working-directory: ${{ inputs.working-directory }} | ||
env: | ||
|
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
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
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 |
---|---|---|
|
@@ -50,8 +50,6 @@ runs: | |
steps: | ||
- name: Check out repository | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Gradle with version ${{ inputs.gradle-version }} | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
|
@@ -66,7 +64,7 @@ runs: | |
run: | | ||
export SIGNING_SECRET_KEY_RING_FILE="$(mktemp -d)/secring.gpg" | ||
echo '${{ inputs.signing-secret-key-ring }}' | base64 -d > $SIGNING_SECRET_KEY_RING_FILE | ||
./gradlew --info --stacktrace -Pgradle.publish.key=${{ inputs.gradle-publish-key }} -Pgradle.publish.secret=${{ inputs.gradle-publish-secret }} publishPlugins -x test ${{ inputs.gradle-refresh-dependencies && '--refresh-dependencies' || '' }} | ||
./gradlew --info --stacktrace -Pgradle.publish.key=${{ inputs.gradle-publish-key }} -Pgradle.publish.secret=${{ inputs.gradle-publish-secret }} publishPlugins -x test ${{ inputs.gradle-refresh-dependencies == 'true' && '--refresh-dependencies' || '' }} | ||
shell: bash | ||
working-directory: ${{ inputs.working-directory }} | ||
env: | ||
|
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 |
---|---|---|
|
@@ -50,8 +50,6 @@ runs: | |
steps: | ||
- name: Check out repository | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Gradle with version ${{ inputs.gradle-version }} | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
|
@@ -67,7 +65,7 @@ runs: | |
run: | | ||
export SIGNING_SECRET_KEY_RING_FILE="$(mktemp -d)/secring.gpg" | ||
echo '${{ inputs.signing-secret-key-ring }}' | base64 -d > $SIGNING_SECRET_KEY_RING_FILE | ||
./gradlew --info --stacktrace publishToNexus -x test ${{ inputs.gradle-refresh-dependencies && '--refresh-dependencies' || '' }} | ||
./gradlew --info --stacktrace publishToNexus -x test ${{ inputs.gradle-refresh-dependencies == 'true' && '--refresh-dependencies' || '' }} | ||
shell: bash | ||
working-directory: ${{ inputs.working-directory }} | ||
env: | ||
|
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
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
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 |
---|---|---|
|
@@ -41,7 +41,6 @@ runs: | |
- name: Check out repository | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
lfs: ${{ inputs.download-lfs-files }} | ||
|
||
- name: Set up Gradle with version ${{ inputs.gradle-version }} | ||
|
@@ -54,7 +53,7 @@ runs: | |
gradle-cache-read-only: ${{ inputs.gradle-cache-read-only }} | ||
|
||
- name: Run tests | ||
run: ./gradlew check --info --stacktrace ${{ inputs.gradle-refresh-dependencies && '--refresh-dependencies' || '' }} | ||
run: ./gradlew check --info --stacktrace ${{ inputs.gradle-refresh-dependencies == 'true' && '--refresh-dependencies' || '' }} | ||
shell: bash | ||
working-directory: ${{ inputs.working-directory }} | ||
|
||
|
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 |
---|---|---|
|
@@ -32,7 +32,6 @@ runs: | |
- name: Check out repository | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
lfs: ${{ inputs.download-lfs-files }} | ||
|
||
- name: Set up Maven with version ${{ inputs.maven-version }} | ||
|