Skip to content

Commit

Permalink
fix(ci/lint): add already installed check to sqlx-cli installation
Browse files Browse the repository at this point in the history
Signed-off-by: Sandro-Alessio Gierens <[email protected]>
  • Loading branch information
gierens committed Dec 29, 2024
1 parent b00ba3d commit 19bd3d0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,16 @@ jobs:
with:
key: sqlx-${{ env.SQLX_VERSION }}
- name: Install sqlx-cli
run:
cargo install sqlx-cli
--version="${SQLX_VERSION}"
--features "${SQLX_FEATURES}"
--no-default-features
--locked
run: |
[[ $(cargo install --list | grep zizmor) ]] && {
echo "sqlx-cli already installed. skipping ..."
} || {
cargo install sqlx-cli
--version="${SQLX_VERSION}"
--features "${SQLX_FEATURES}"
--no-default-features
--locked
}
- name: Install mariadb-client and mold
run: sudo apt update && sudo apt install mariadb-client mold -y
- name: Migrate database
Expand Down

0 comments on commit 19bd3d0

Please sign in to comment.