docs(readme): announce crates.io publish for core/store/llm (#10) #55
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: | |
| jobs: | |
| fmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --all -- --check | |
| clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo clippy --workspace --all-targets -- -D warnings | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: pgvector/pgvector:pg16 | |
| env: | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: eros_engine_test | |
| ports: ['5432:5432'] | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| env: | |
| DATABASE_URL: postgres://postgres:postgres@localhost:5432/eros_engine_test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install sqlx-cli | |
| run: cargo install sqlx-cli --no-default-features --features postgres | |
| - name: Run migrations | |
| run: sqlx migrate run --source crates/eros-engine-store/migrations | |
| - run: cargo test --workspace --all-features | |
| cla: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| # Non-blocking until CLA_BOT_TOKEN is configured in repo secrets. | |
| # Without the PAT the bot can't create/update cla-signatures.json, so | |
| # every PR currently fails on a 404 read. Flip continue-on-error back | |
| # to false once the secret is set and signatures.json is seeded. | |
| - uses: contributor-assistant/github-action@v2.4.0 | |
| continue-on-error: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_BOT_TOKEN }} | |
| with: | |
| path-to-signatures: 'cla-signatures.json' | |
| path-to-document: 'https://github.com/etherfunlab/eros-engine/blob/main/CLA.md' | |
| branch: 'main' | |
| allowlist: dependabot[bot],enriquephl |