34 lines
506 B
YAML
34 lines
506 B
YAML
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
|
|
run: cargo fmt --check
|
|
|
|
- name: clippy
|
|
run: cargo clippy
|