feat: new cli #37
This file contains 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: | |
- master | |
paths: | |
- "gotham-server/**" | |
- "gotham-utilities/**" | |
- "integration-tests/**" | |
- "gotham-client/Cargo.toml" | |
- "Cargo.toml" | |
pull_request: | |
branches: | |
- master | |
paths: | |
- "gotham-server/**" | |
- "gotham-utilities/**" | |
- "integration-tests/**" | |
- "gotham-client/Cargo.toml" | |
- "Cargo.toml" | |
jobs: | |
lints: | |
name: Lints | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Run cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
build-and-test: | |
name: Test Suite | |
runs-on: ubuntu-latest | |
needs: lints | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
# - run: cargo build --release | |
- name: Unit tests | |
run: cargo test --all -- --nocapture | |