Skip to content

feat(coprocessor): import zama-ai/listener #13

feat(coprocessor): import zama-ai/listener

feat(coprocessor): import zama-ai/listener #13

Workflow file for this run

name: listener-tests
on:
push:
branches: [main]
pull_request:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
check-changes:
name: listener-tests/check-changes
runs-on: ubuntu-latest
outputs:
rust-changed: ${{ github.event_name == 'push' || steps.filter.outputs.rust }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
if: github.event_name != 'push'
with:
persist-credentials: 'false'
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
if: github.event_name != 'push'
id: filter
with:
filters: |
rust:
- .github/workflows/listener-tests.yml
- listener/Cargo.toml
- listener/Cargo.lock
- listener/crates/**
tests:
name: listener-tests/tests
needs: check-changes
if: ${{ needs.check-changes.outputs.rust-changed == 'true' }}
permissions:
contents: 'read'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
with:
toolchain: 1.91.1
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-test-
- run: make test
working-directory: listener