24 lines
519 B
YAML
24 lines
519 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Check Rust installation
|
|
run: |
|
|
which cargo || echo "cargo not found"
|
|
cargo --version || echo "cargo not available"
|
|
- name: Check compilation
|
|
run: |
|
|
cargo check --all-targets || echo "check failed"
|
|
- name: Run tests
|
|
run: |
|
|
cargo test --all || echo "tests failed"
|