-
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.
Co-authored-by: Christoph Kuhnke <[email protected]>
- Loading branch information
1 parent
0567daa
commit fcba3e9
Showing
50 changed files
with
1,412 additions
and
1,107 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,6 +9,9 @@ on: | |
jobs: | ||
test: | ||
runs-on: windows-latest | ||
defaults: | ||
run: | ||
shell: "bash" | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
@@ -35,13 +38,48 @@ jobs: | |
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('**/go.sum') }} | ||
key: ${{ runner.os }}-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go-${{ matrix.go }} | ||
${{ runner.os }}-go- | ||
- name: Install Go tools | ||
run: go install github.com/google/[email protected] | ||
- name: Build and install | ||
run: mvn --batch-mode -DtrimStackTrace=false clean install | ||
- name: Run project-keeper itself | ||
id: pk-verify | ||
run: mvn --batch-mode -DtrimStackTrace=false com.exasol:project-keeper-maven-plugin:verify --projects . | ||
|
||
- name: Verify Release Artifacts | ||
run: | | ||
print_message() { | ||
local -r message=$1 | ||
echo "$message" | ||
echo "$message" >> "$GITHUB_STEP_SUMMARY" | ||
} | ||
print_message "# Release Artifacts" | ||
IFS=$'\n' artifacts_array=($ARTIFACTS) | ||
missing_files=() | ||
for file in "${artifacts_array[@]}"; | ||
do | ||
echo "Checking if file $file exists..." | ||
if ! [[ -f "$file" ]]; then | ||
print_message "* ⚠️ \`$file\` does not exist ⚠️" | ||
echo "Content of directory $(dirname "$file"):" | ||
ls "$(dirname "$file")" | ||
missing_files+=("$file") | ||
else | ||
print_message "* \`$file\` ✅" | ||
fi | ||
done | ||
print_message "" | ||
number_of_missing_files=${#missing_files[@]} | ||
if [[ $number_of_missing_files -gt 0 ]]; then | ||
print_message "⚠️ $number_of_missing_files release artifact(s) missing ⚠️" | ||
exit 1 | ||
else | ||
print_message "All ${#artifacts_array[@]} artifact(s) present ✅" | ||
fi | ||
env: | ||
ARTIFACTS: ${{ steps.pk-verify.outputs.release-artifacts }} |
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
Oops, something went wrong.