Skip to content

Commit

Permalink
chore: remove actions-rs tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
nlopes committed Sep 9, 2023
1 parent f42ebf3 commit 6c39ac1
Showing 1 changed file with 21 additions and 40 deletions.
61 changes: 21 additions & 40 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,75 +24,56 @@ jobs:
nightly: true

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
components: clippy, rustfmt
run: |
rustup update
rustup component add clippy rustfmt
rustup install ${{ matrix.toolchain }}
- name: Print rust tooling information
run: |
rustc --version
cargo --version --verbose
cargo clippy --version
cargo fmt --version
- name: Cache cargo registry
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: rust_${{ matrix.toolchain }}-cargo-${{ hashFiles('**/Cargo.toml') }}

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

- name: Run test - sqlite | sqlx | runtime-async-std | macros
uses: actions-rs/cargo@v1
with:
command: test
args: --features sqlite,sqlx,runtime-async-std,macros --all-targets --verbose
run: cargo test --features sqlite,sqlx,runtime-async-std,macros --all-targets --verbose

- name: Run test - sqlite | diesel | runtime-async-std | macros
uses: actions-rs/cargo@v1
with:
command: test
args: --features sqlite,diesel,runtime-async-std,macros --all-targets --verbose
run: cargo test --features sqlite,diesel,runtime-async-std,macros --all-targets --verbose

- name: Run test - sqlite | diesel
uses: actions-rs/cargo@v1
with:
command: test
args: --features sqlite,diesel --all-targets --verbose
run: cargo test --features sqlite,diesel --all-targets --verbose

- name: Start containers for database tests
run: docker compose -f "docker-compose.yml" up -d

- name: Run test - mysql | diesel
uses: actions-rs/cargo@v1
with:
command: test
args: --features mysql,diesel --all-targets --verbose
run: cargo test --features mysql,diesel --all-targets --verbose

- name: Run test - mysql | sqlx | runtime-async-std
uses: actions-rs/cargo@v1
with:
command: test
args: --features mysql,sqlx,runtime-async-std --all-targets --verbose
run: cargo test --features mysql,sqlx,runtime-async-std --all-targets --verbose

- name: Stop containers for database tests
if: always()
run: docker compose -f "docker-compose.yml" down --volumes

- name: Run doc tests
uses: actions-rs/cargo@v1
with:
command: test
args: --features sqlite,sqlx,runtime-async-std,macros --doc --verbose
run: cargo test --features sqlite,sqlx,runtime-async-std,macros --doc --verbose

- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --features sqlite,sqlx,runtime-async-std,macros
run: cargo clippy --features sqlite,sqlx,runtime-async-std,macros

0 comments on commit 6c39ac1

Please sign in to comment.