Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): remove deprecated actions-rs actions #181

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 6 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
## Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
name: Test

on:
Expand Down Expand Up @@ -30,15 +29,11 @@ jobs:
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: 1.80.0
override: true
components: clippy, rustfmt
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

override true is default.
profile is not present as an option.


- uses: Swatinem/rust-cache@v2

- name: Install sqlx-cli
run: cargo install [email protected] --no-default-features --features native-tls,postgres

Expand All @@ -49,28 +44,17 @@ jobs:
run: cargo sqlx prepare --check -- --tests

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all --all-targets
run: cargo build --workspace --all-targets
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--all is deprecated in favor of --workspace


- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all
run: cargo test --workspace

- name: Lint code
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all
run: cargo clippy --workspace

- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all --check
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the -- is not required anymore


docker:
name: Test Docker
runs-on: ubuntu-latest
Expand Down
Loading