feat: refact codebase and use match on tcp listener accept in server lib #83
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: build | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ATiltedTree/setup-rust@v1 | |
with: | |
rust-version: stable | |
components: clippy | |
- run: cargo clippy | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ATiltedTree/setup-rust@v1 | |
with: | |
rust-version: stable | |
- run: cargo check | |
test: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macOS-latest | |
rust: | |
- stable | |
- beta | |
- nightly | |
runs-on: ${{ matrix.os }} | |
needs: [compile] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ATiltedTree/setup-rust@v1 | |
with: | |
rust-version: ${{ matrix.rust }} | |
- run: cargo test |