Merge pull request #43 from KumoCorp/main #134
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Continuous Integration | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| workflow_call: | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| lint: | |
| name: 🎨 Linters | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Formatting | |
| run: cargo fmt --check | |
| - name: Clippy | |
| run: rustup component add clippy && cargo clippy | |
| tests: | |
| name: ✅ Tests | |
| needs: | |
| - lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Run tests | |
| run: | | |
| cargo build --bin normalizer --features=cli --release | |
| cargo test --release | |
| perfomance: | |
| name: ⚡ Performance & 📈 Coverage | |
| needs: | |
| - lint | |
| - tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Run performance & coverage tool | |
| run: cargo run --bin performance --features performance --release |