Skip to content

Commit

Permalink
tests...
Browse files Browse the repository at this point in the history
  • Loading branch information
helio-frota committed Dec 11, 2024
1 parent 8f98422 commit 2cc2ef8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
name: ci

on:
push:
branches:
- main
pull_request:
branches:
- main
on: [push, pull_request]

jobs:

ci:
name: Test `cargo fmt/check/clippy/test` on ubuntu-latest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --check
- name: Check
run: cargo check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings -D clippy::unwrap_used -D clippy::expect_used
- uses: taiki-e/install-action@cargo-llvm-cov
- run: rustup toolchain install stable --profile minimal --no-self-update
- run: |
cargo llvm-cov test
cargo fmt --check
cargo check
cargo test
cargo clippy --all-targets --all-features -- -D warnings -D clippy::unwrap_used -D clippy::expect_used
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.80.1"
channel = "1.83.0"
components = ["rustfmt", "clippy"]

0 comments on commit 2cc2ef8

Please sign in to comment.