Add diary day boundary #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| rust: | |
| name: Rust checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - name: Cache cargo artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Check workspace | |
| run: cargo check --workspace | |
| - name: Test workspace | |
| run: cargo test --workspace | |
| - name: Install Python YAML parser | |
| run: python3 -m pip install pyyaml | |
| - name: Validate OpenAPI YAML | |
| run: | | |
| python3 - <<'PY' | |
| import yaml | |
| yaml.safe_load(open('openapi/hub.yaml')) | |
| print('openapi yaml ok') | |
| PY |