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

39 lines
673 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
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