Skip to content

Improved README, added basic CI CD #5

Improved README, added basic CI CD

Improved README, added basic CI CD #5

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
schedule:
# Run nightly to catch regressions
- cron: '0 0 * * *'
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
# TODO: Add Clippy and mock Funderberker testing
jobs:
name: Check

Check failure on line 19 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

You have an error in your yaml syntax on line 19
runs-on: ubuntu-latest
strategy:
matrix:
crate:
- macros
- utils
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
key: crate-${{ matrix.crate }}
- name: Check ${{ matrix.crate }}
run: cargo +nightly check --manifest-path="${{ matrix.crate }}/Cargo.toml" --verbose
unit-tests:
name: Unit Test Individual Crates
runs-on: ubuntu-latest
strategy:
matrix:
crate:
- macros
- utils
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
key: crate-${{ matrix.crate }}
- name: Test ${{ matrix.crate }}
run: cargo +nightly test --manifest-path="${{ matrix.crate }}/Cargo.toml" --verbose
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build docs
run: cargo doc --no-deps --all-features
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc