diff --git a/.github/workflows/rust-build-test.yaml b/.github/workflows/rust-build-test.yaml index 3312595..170e77b 100644 --- a/.github/workflows/rust-build-test.yaml +++ b/.github/workflows/rust-build-test.yaml @@ -17,16 +17,8 @@ jobs: with: ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Install latest stable - uses: actions-rs/toolchain@v1 - with: - toolchain: stable + uses: dtolnay/rust-toolchain@stable - name: Run build - uses: actions-rs/cargo@v1 - with: - command: build - args: --verbose + run: cargo build --verbose - name: Run test - uses: actions-rs/cargo@v1 - with: - command: test - args: --verbose + run: cargo test --verbose diff --git a/.github/workflows/rust-format-lint.yaml b/.github/workflows/rust-format-lint.yaml index a07d993..8b70034 100644 --- a/.github/workflows/rust-format-lint.yaml +++ b/.github/workflows/rust-format-lint.yaml @@ -18,16 +18,10 @@ jobs: with: ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Install latest stable - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable components: rustfmt, clippy - name: Run rustfmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --check + run: cargo fmt --check - name: Run clippy - uses: actions-rs/cargo@v1 - with: - command: clippy + run: cargo clippy diff --git a/.github/workflows/rust-openapi-changes.yaml b/.github/workflows/rust-openapi-changes.yaml index ee3d1d6..04eb29f 100644 --- a/.github/workflows/rust-openapi-changes.yaml +++ b/.github/workflows/rust-openapi-changes.yaml @@ -17,16 +17,11 @@ jobs: with: ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Install latest stable - uses: actions-rs/toolchain@v1 - with: - toolchain: stable + uses: dtolnay/rust-toolchain@stable - name: Copy openapi.yaml run: cp openapi.yaml openapi.yaml_bak shell: bash - name: Generate OpenAPI specification - uses: actions-rs/cargo@v1 - with: - command: run - args: --bin gen-openapi --verbose + run: cargo run --bin gen-openapi --verbose - name: Compare files run: diff --side-by-side openapi.yaml openapi.yaml_bak \ No newline at end of file