2023-09-30 15:38:51 +00:00
|
|
|
name: check-and-test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
check-and-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: git checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: setup rust
|
|
|
|
uses: https://github.com/actions-rs/toolchain@v1
|
2023-10-09 11:35:41 +00:00
|
|
|
- name: check formatting
|
|
|
|
uses: https://github.com/actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: "--check -p mgmt-api -p lavina-core -p projection-irc"
|
2023-09-30 15:38:51 +00:00
|
|
|
- name: cargo check
|
|
|
|
uses: https://github.com/actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
|
|
|
- name: test
|
|
|
|
uses: https://github.com/actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
2023-10-09 11:35:41 +00:00
|
|
|
args: "--all"
|