diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 31000a2..8b9931d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Builds on: push: @@ -18,5 +18,3 @@ jobs: - uses: actions/checkout@v3 - name: Build run: cargo build --verbose - - name: Run tests - run: cargo test --verbose diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..2885b85 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,20 @@ +name: Tests + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Run tests + run: cargo test --verbose diff --git a/README.md b/README.md index ea7cda7..9e4b474 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Flagfile -![Build and Tests](https://github.com/dzhibas/flagfile/actions/workflows/rust.yml/badge.svg) +![Tests passing](https://github.com/dzhibas/flagfile/actions/workflows/tests.yml/badge.svg) it's developer friendly feature flagging solution where you define all your flags in Flagfile in this format: [Flagfile.example](Flagfile.example)