enable CI
This commit is contained in:
parent
b21875b963
commit
c50568c709
30
.github/workflows/ci.yml
vendored
Normal file
30
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
merge_group:
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
name: Continuous Integration
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install ${{ matrix.rust }} toolchain
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: stable
|
||||
components: clippy, rustfmt
|
||||
|
||||
- name: Run tests
|
||||
run: cargo t
|
||||
|
||||
- name: Check that code is formatted
|
||||
run: cargo fmt -- --check
|
||||
|
||||
- name: Lint code
|
||||
run: cargo clippy -- -D warnings
|
Loading…
Reference in New Issue
Block a user