name: server on: pull_request: branches: [ "main" ] env: CARGO_TERM_COLOR: always jobs: check: runs-on: ubuntu-latest defaults: run: working-directory: ./server steps: - uses: actions/checkout@v3 - name: toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 with: components: clippy, rustfmt - name: test run: cargo test --verbose - name: fmt uses: actions-rust-lang/rustfmt@v1 with: manifest-path: server/Cargo.toml - name: clippy uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} args: --all-features