name: Test

on:
  pull_request:
    branches:
      - main

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        cucumber-version: [12, 13]
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: 24
      - run: npm ci
      - run: npm install @cucumber/cucumber@${{ matrix.cucumber-version }}
#      - run: npx playwright install
      - run: npm run build
      - run: npm run report:generate
#      - run: npm run test:e2e
      - name: junit report
        uses: mikepenz/action-junit-report@v3
        if: always()
        with:
         report_paths: './test-e2e/report/report.xml'
         fail_on_failure: true
