-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify shell in all GitHub Actions workflows when needed
Summary ------- - `shell: bash` was added when a run command used pipes (including command that used `set -e -o pipefail`). For the documentation: <https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference> Setting `shell` to that value will automatically add the `-o pipefail` (alongside `-e`) - `shell: bash ... {0}` was used for run commands that used `set ...` Fixes ----- - Fix `yq` syntax (GA use `yq-go` not `yq` (the python wrapper of `jq`)) - Fix clippy error in `libparsec/crates/platform_device_loader/tests/archive.rs`
- Loading branch information
1 parent
5e8b648
commit 6f38e82
Showing
12 changed files
with
34 additions
and
35 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 |
---|---|---|
|
@@ -108,6 +108,7 @@ jobs: | |
|
||
- name: Categorize workspace crates | ||
id: crates | ||
shell: bash | ||
run: | | ||
( | ||
for type in agnostic platform bindings; do | ||
|
@@ -168,7 +169,8 @@ jobs: | |
|
||
- name: Retrieve clippy args | ||
id: clippy-args | ||
run: yq -r '"args=" + (.repos | map(.hooks) | flatten | map(select(.id == "clippy")) | first | .args | join(" "))' .pre-commit-config.yaml | tee -a $GITHUB_OUTPUT | ||
shell: bash | ||
run: yq -r '"args=" + (.repos | map(.hooks) | flatten | map(select(.id == "clippy"))[0] | .args | join(" "))' .pre-commit-config.yaml | tee -a $GITHUB_OUTPUT | ||
timeout-minutes: 1 | ||
|
||
- name: Check rust code format | ||
|
@@ -178,8 +180,8 @@ jobs: | |
- name: SQL lint | ||
# Cannot use `./misc/lint_sql.py` here since it would require us to install the | ||
# whole Python server project. | ||
shell: bash -eux {0} | ||
run: | | ||
set -eux | ||
pipx install sqlfluff | ||
sqlfluff lint --disable-progress-bar --config libparsec/crates/platform_storage/src/native/sql/.sqlfluff libparsec/crates/platform_storage/src/native/sql/ | ||
|
@@ -248,9 +250,8 @@ jobs: | |
|
||
- name: Install winfsp | ||
if: startsWith(matrix.os, 'windows') | ||
shell: bash | ||
shell: bash -eux {0} | ||
run: | | ||
set -eux | ||
choco install winfsp -y --version=${{ env.WINFSP_VERSION }} | ||
curl -L https://github.com/winfsp/winfsp/releases/download/v2.0/winfsp-tests-${{ env.WINFSP_VERSION }}.zip -o D:/a/_temp/winfsp-tests.zip | ||
unzip D:/a/_temp/winfsp-tests.zip -d D:/a/_temp/ | ||
|
@@ -267,9 +268,8 @@ jobs: | |
tool: [email protected] | ||
|
||
- name: Check rust agnostic codebase | ||
shell: bash | ||
shell: bash -ex {0} | ||
run: | | ||
set -x | ||
NON_BINDINGS_CRATES=`python3 misc/libparsec_crates_flags.py agnostic platform` | ||
cargo check ${{ env.CARGO_CI_FLAGS }} $NON_BINDINGS_CRATES --features use-sodiumoxide | ||
timeout-minutes: 15 # It can be very slow if cache has missed | ||
|
@@ -283,9 +283,8 @@ jobs: | |
timeout-minutes: 10 | ||
|
||
- name: Test Rust platform codebase with sodium | ||
shell: bash | ||
shell: bash -ex -o pipefail {0} | ||
run: | | ||
set -x | ||
PLATFORM_CRATES=`python3 misc/libparsec_crates_flags.py platform` | ||
if [[ '${{ matrix.os }}' = macos* ]]; then | ||
# Mountpoint cannot be tested on macOS because it requires macFUSE installation, | ||
|
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 |
---|---|---|
|
@@ -83,6 +83,7 @@ jobs: | |
|
||
- name: Start docker test container | ||
id: test-container | ||
shell: bash | ||
run: | | ||
( | ||
echo -n "id="; | ||
|
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