---
name: echoes
"on":
pull_request:
permissions:
contents: read
concurrency:
group: echoes-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
scan:
name: Echoes ${{ matrix.name }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
include:
- name: root
cwd: .
- name: fuzz
cwd: fuzz
- name: diesel-e2e
cwd: integration-tests/diesel-e2e
- name: schema-aware-roundtrip
cwd: integration-tests/schema-aware-roundtrip
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 with:
persist-credentials: false
- uses: LucaCappelletti94/cargo-echoes@14ca2c9fa250b4eb8cd59c47f187b1f2281fb484 with:
cwd: ${{ matrix.cwd }}
version: 0.9.0
threshold: 2
min-tokens: 0
functions: true
fn-min-tokens: 30
context-blocks: true
context-min-tokens: 30
all-targets: true
max-comments: 20
pr-number: ${{ github.event.pull_request.number }}
mode: prepare
payload: ${{ runner.temp }}/echoes-payload
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 with:
name: echoes-payload-${{ matrix.name }}
path: ${{ runner.temp }}/echoes-payload
retention-days: 7
if-no-files-found: error