Allow multiple parallel connections to Selenium #1268
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ main ] | |
| schedule: | |
| - cron: '25 08 * * *' | |
| workflow_dispatch: | |
| inputs: | |
| debug_enabled: | |
| type: boolean | |
| description: Debug with tmate | |
| required: false | |
| default: false | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| # This is required for "gautamkrishnar/keepalive-workflow", see "ddev/github-action-add-on-test" | |
| permissions: | |
| actions: write | |
| jobs: | |
| tests: | |
| strategy: | |
| matrix: | |
| ddev_version: [stable, HEAD] | |
| fail-fast: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: ddev/github-action-add-on-test@v2 | |
| with: | |
| ddev_version: ${{ matrix.ddev_version }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| debug_enabled: ${{ github.event.inputs.debug_enabled }} | |
| addon_repository: ${{ env.GITHUB_REPOSITORY }} | |
| addon_ref: ${{ env.GITHUB_REF }} | |
| # The path for one of the files in artifact is not valid | |
| - name: Zip artifacts that can't be processed by actions/upload-artifact | |
| if: always() | |
| run: | | |
| for d in ${{ env.TESTDIR }}*/; do | |
| if [ -d "$d/web/core/reports/nightwatch" ]; then | |
| (cd "$d/web/core/reports" && zip -r nightwatch.zip nightwatch) | |
| fi | |
| done | |
| - name: Upload artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact-${{ matrix.ddev_version }} | |
| path: | | |
| ${{ env.TESTDIR }}*/web/sites/simpletest/browser_output | |
| ${{ env.TESTDIR }}*/web/*.junit.xml | |
| ${{ env.TESTDIR }}*/web/core/reports/nightwatch.zip |