diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml deleted file mode 100644 index b129e4b..0000000 --- a/.github/workflows/test.yaml +++ /dev/null @@ -1,37 +0,0 @@ -name: Playwright Tests -on: - workflow_dispatch: - inputs: - repeat-each: - default: 5 - type: number - description: The number of times to repeat the test - test-path: - required: true - type: string - description: A relative path to the test file under test -jobs: - test: - timeout-minutes: 60 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - name: Set env variables - run: | - echo "NUMBER_OF_RUNS=" >> "$GITHUB_ENV" - echo "TEST_PATH=${{ github.event.inputs.test-path }}" >> "$GITHUB_ENV" - - name: Install dependencies - run: npm ci - - name: Install Playwright Browsers - run: npx playwright install --with-deps - - name: Run Playwright tests - run: npx playwright test "${{ github.event.inputs.test-path }}" --workers=1 --repeat-each=${{ inputs.repeat-each }} - - uses: actions/upload-artifact@v3 - if: always() - with: - name: playwright-report - path: playwright-report/ - retention-days: 30 \ No newline at end of file