Skip to content

Commit

Permalink
chore: remove duplicated CI checkout (#152)
Browse files Browse the repository at this point in the history
* chore: remove duplicated CI checkout

* chore: remove duplicated build
  • Loading branch information
joaothallis authored May 16, 2024
1 parent 1de1874 commit 29f2f5a
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
# try to build
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
# run all tests
- uses: actions/checkout@v3
- name: Run tests
run: cargo build && cargo test --verbose

linting:

runs-on: ubuntu-latest

steps:
Expand All @@ -38,7 +23,6 @@ jobs:
run: cargo +nightly fmt --all --check

# run cargo clippy
- uses: actions/checkout@v3
- name: Clippy
run: cargo +nightly clippy --all-targets

Expand All @@ -53,5 +37,5 @@ jobs:
with:
toolchain: ${{ matrix.rust }}

- name: Cross compile
run: cargo build && cargo test --verbose
- run: cargo build --verbose
- run: cargo test --verbose

0 comments on commit 29f2f5a

Please sign in to comment.