-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from MarcoIeni/chore-ci-remove-deprecated-act…
…ions-rs-actions chore(ci): remove deprecated actions-rs actions
- Loading branch information
Showing
3 changed files
with
8 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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 | ||
toolchain: 1.82.0 | ||
components: clippy, rustfmt | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Install sqlx-cli | ||
run: cargo install [email protected] --no-default-features --features native-tls,postgres | ||
|
||
|
@@ -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 | ||
|
||
- 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 | ||
|
||
docker: | ||
name: Test Docker | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM rust:1.80 AS base | ||
FROM rust:1.82 AS base | ||
|
||
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters