2023-05-23 03:22:25 +00:00
|
|
|
name: server
|
2023-05-22 23:01:40 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
2023-05-23 03:22:25 +00:00
|
|
|
check:
|
2023-05-22 23:01:40 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2023-05-23 04:58:05 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./server
|
|
|
|
|
2023-05-22 23:01:40 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-05-23 04:43:48 +00:00
|
|
|
|
|
|
|
- name: toolchain
|
|
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
|
|
with:
|
|
|
|
components: clippy, rustfmt
|
|
|
|
|
2023-05-23 03:22:25 +00:00
|
|
|
- name: test
|
2023-05-22 23:01:40 +00:00
|
|
|
run: cargo test --verbose
|
2023-05-23 04:43:48 +00:00
|
|
|
|
|
|
|
- name: fmt
|
|
|
|
uses: mbrobbel/rustfmt-check@master
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: clippy
|
|
|
|
uses: actions-rs/clippy-check@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
args: --all-features
|