feat: call SessionObserver's hooks
#51
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] | |
| schedule: | |
| - cron: '0 0 1 * *' | |
| env: | |
| CARGO_NET_GIT_FETCH_WITH_CLI: true | |
| RUSTC_WRAPPER: "sccache" | |
| SCCACHE_GHA_ENABLED: true | |
| jobs: | |
| clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: webfactory/[email protected] | |
| with: | |
| ssh-private-key: | | |
| ${{ secrets.ABS_PATH_DEPLOY_KEY }} | |
| ${{ secrets.CAUCHY_DEPLOY_KEY }} | |
| ${{ secrets.LAZY_AWAIT_DEPLOY_KEY }} | |
| ${{ secrets.PANDO_DEPLOY_KEY }} | |
| ${{ secrets.PUFF_DEPLOY_KEY }} | |
| - uses: mozilla-actions/[email protected] | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - run: cargo clippy --all-features --all-targets --no-deps -- -D warnings | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: webfactory/[email protected] | |
| with: | |
| ssh-private-key: | | |
| ${{ secrets.ABS_PATH_DEPLOY_KEY }} | |
| ${{ secrets.CAUCHY_DEPLOY_KEY }} | |
| ${{ secrets.LAZY_AWAIT_DEPLOY_KEY }} | |
| ${{ secrets.PANDO_DEPLOY_KEY }} | |
| ${{ secrets.PUFF_DEPLOY_KEY }} | |
| - uses: mozilla-actions/[email protected] | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: Generate coverage | |
| run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./codecov.json | |
| fail_ci_if_error: true | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: webfactory/[email protected] | |
| with: | |
| ssh-private-key: | | |
| ${{ secrets.ABS_PATH_DEPLOY_KEY }} | |
| ${{ secrets.CAUCHY_DEPLOY_KEY }} | |
| ${{ secrets.LAZY_AWAIT_DEPLOY_KEY }} | |
| ${{ secrets.PANDO_DEPLOY_KEY }} | |
| ${{ secrets.PUFF_DEPLOY_KEY }} | |
| - uses: mozilla-actions/[email protected] | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: RUSTFLAGS="--deny warnings" cargo doc --all-features | |
| format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --check | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: webfactory/[email protected] | |
| with: | |
| ssh-private-key: | | |
| ${{ secrets.ABS_PATH_DEPLOY_KEY }} | |
| ${{ secrets.CAUCHY_DEPLOY_KEY }} | |
| ${{ secrets.LAZY_AWAIT_DEPLOY_KEY }} | |
| ${{ secrets.PANDO_DEPLOY_KEY }} | |
| ${{ secrets.PUFF_DEPLOY_KEY }} | |
| - uses: mozilla-actions/[email protected] | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: cargo test --all-features --no-fail-fast --workspace |