29 lines
507 B
YAML
29 lines
507 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
|
|
- name: Build project
|
|
run: cargo build --all
|
|
|
|
- name: Run tests
|
|
run: cargo test --all
|
|
|
|
- name: Run clippy
|
|
run: cargo clippy --all -- -D warnings
|