Skip to content

Commit

Permalink
build (test): executes tests recursively
Browse files Browse the repository at this point in the history
  • Loading branch information
sardylan committed Aug 29, 2024
1 parent 035cf77 commit 3ba9ec8
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: for DIR in $(find . -name Cargo.toml -printf "%h\n" | sort -u); do pushd "${DIR}" > /dev/null; cargo test --verbose; popd > /dev/null; done

0 comments on commit 3ba9ec8

Please sign in to comment.