diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 09ee939..b988905 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 @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index db8f4e7..8e48c21 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 diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 5cd22e4..4e83ab3 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: