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

36 lines
643 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
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
working-directory: server
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