# Liney's contract checker on every push (https://www.liney.ai/developers/llms.txt, section 13).
# Secrets: LINEY_KEY (the connection's test key). Variables: LINEY_ENDPOINT (your staging endpoint, https).
# The checker creates and removes deals, notes and contacts on the test target: point it at staging, never live.
name: liney-check
on: [push, pull_request, workflow_dispatch]
jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - name: Run Liney's checker against the test target
        env:
          LINEY_URL: https://www.liney.ai
          LINEY_KEY: ${{ secrets.LINEY_KEY }}
        run: npx liney-check "${{ vars.LINEY_ENDPOINT }}"
