moq-rs/.github/workflows/server.yml

34 lines
506 B
YAML
Raw Normal View History

2023-05-23 03:22:25 +00:00
name: server
on:
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
2023-05-23 03:22:25 +00:00
check:
runs-on: ubuntu-latest
2023-05-23 04:58:05 +00:00
defaults:
run:
working-directory: ./server
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
run: cargo test --verbose
2023-05-23 04:43:48 +00:00
- name: fmt
2023-05-23 05:08:34 +00:00
run: cargo fmt --check
2023-05-23 04:43:48 +00:00
- name: clippy
2023-05-23 05:08:34 +00:00
run: cargo clippy