Sync the .feature files from CI
After checkout, a job on your default branch reads your .feature files and makes the cases match them: a new scenario creates a case, a changed scenario updates its case, and a removed scenario archives it. Change a scenario in its file through a pull request, and its case follows once the change lands.
The pipeline signs in with an app token from the Cucumber card. The sync needs a paid plan, as CI reporting does. Steps use English keywords only: a file in another language stops the sync.
- name: Sync the feature files to Probara
run: npx @probara/cli sync gherkin "features/**/*.feature"
env:
PROBARA_API_TOKEN: ${{ secrets.PROBARA_API_TOKEN }}
PROBARA_PROJECT: ${{ vars.PROBARA_PROJECT }}