-
Notifications
You must be signed in to change notification settings - Fork 9
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 #241 from gematik/johannes/polarion-upload
Allow uploading images to Polarion
- Loading branch information
Showing
14 changed files
with
1,831 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Lint AsciiDoc | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Verify format of Rust code | ||
shell: bash | ||
run: | | ||
function err { | ||
>&2 echo -e "\033[0;31m$@\033[0m" | ||
} | ||
rc=0 | ||
while read -r file; do | ||
echo "Checking $(basename "$file")" | ||
if ! cargo fmt --check --manifest-path "$file"; then | ||
rc=1 | ||
fi | ||
done < <(find . -type f -name "Cargo.toml") | ||
exit $rc | ||
- name: Lint Rust code | ||
shell: bash | ||
run: | | ||
function err { | ||
>&2 echo -e "\033[0;31m$@\033[0m" | ||
} | ||
rc=0 | ||
while read -r file; do | ||
echo "Checking $(basename "$file")" | ||
if ! cargo clippy --all-targets --all-features --manifest-path "$file"; then | ||
rc=1 | ||
fi | ||
done < <(find . -type f -name "Cargo.toml") | ||
exit $rc |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.dtmp | ||
src/fhir/input-cache | ||
.idea | ||
.idea | ||
target/ |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Usage | ||
|
||
From this folder, run | ||
|
||
``` | ||
cargo run ../../images/generated/TI-M_Pro/UC_10059_Seq.png | ||
``` | ||
|
||
and follow the prompts. | ||
|
||
To run from another folder use the `--manifest-path` flag, e.g. | ||
|
||
``` | ||
cargo run --manifest-path tools/upload-polarion-attachment/Cargo.toml images/generated/TI-M_Pro/UC_10059_Seq.png | ||
``` | ||
|
||
Only works while on the VPN and when `POLARION_ACCESS_TOKEN` is available in the environment. | ||
|
||
# Development | ||
|
||
To format and lint locally, run | ||
|
||
``` | ||
cargo fmt | ||
cargo clippy --all-targets --all-features | ||
``` |
Oops, something went wrong.