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

38 lines
707 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
2023-05-23 04:56:16 +00:00
working-directory: server
2023-05-23 04:43:48 +00:00
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: clippy
uses: actions-rs/clippy-check@v1
2023-05-23 04:56:16 +00:00
working-directory: server
2023-05-23 04:43:48 +00:00
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features