From a3c90dd5403e0eb1b44abb9fa8a712e65ab7def7 Mon Sep 17 00:00:00 2001 From: Sandro-Alessio Gierens Date: Sun, 29 Dec 2024 11:20:52 +0100 Subject: [PATCH 1/4] ci(workflow): remove newline in zizmor install step Signed-off-by: Sandro-Alessio Gierens --- .github/workflows/workflow.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 5cd22e45..4e83ab32 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -23,8 +23,7 @@ jobs: - name: Rust Cache Action uses: Swatinem/rust-cache@v2 - name: Install zizmor - run: - cargo install zizmor + run: cargo install zizmor - name: check workflows run: zizmor .github/workflows env: From 2f1ac7fbb663a038cbf00a913e51f0deeba671c2 Mon Sep 17 00:00:00 2001 From: Sandro-Alessio Gierens Date: Sun, 29 Dec 2024 11:21:43 +0100 Subject: [PATCH 2/4] ci(test): escape new lines in sqlx-cli install step Signed-off-by: Sandro-Alessio Gierens --- .github/workflows/test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index db8f4e78..8e48c213 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,12 +43,12 @@ 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 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 From 268d9de02717909ace9da997e92f5dd17b3d0b12 Mon Sep 17 00:00:00 2001 From: Sandro-Alessio Gierens Date: Sun, 29 Dec 2024 11:22:28 +0100 Subject: [PATCH 3/4] ci(lint): escape new lines in sqlx-cli install step Signed-off-by: Sandro-Alessio Gierens --- .github/workflows/lint.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 09ee9393..b8de4075 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -60,12 +60,12 @@ 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 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 From 089f53e6b63fe2f1db0398546df2a0709e457178 Mon Sep 17 00:00:00 2001 From: Sandro-Alessio Gierens Date: Sun, 29 Dec 2024 11:22:48 +0100 Subject: [PATCH 4/4] ci(lint): use install-action for spellcheck Signed-off-by: Sandro-Alessio Gierens --- .github/workflows/lint.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b8de4075..b9889054 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -79,16 +79,12 @@ jobs: name: spellcheck runs-on: ubuntu-latest steps: - - name: Check out repository code - uses: actions/checkout@v4 + - uses: actions/checkout@v4 with: persist-credentials: false - - name: Install the Rust toolchain - uses: dtolnay/rust-toolchain@stable - - name: Install libclang-dev and hunspell - run: sudo apt update && sudo apt install libclang-dev hunspell -y - - name: Install cargo-spellcheck - run: cargo install cargo-spellcheck + - uses: taiki-e/install-action@v2.47.0 + with: + tool: cargo-spellcheck - name: Check spelling run: cargo spellcheck --cfg=.spellcheck.toml --code 1