Attempt to fix mac tests #599
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
| # Workflow for running automated tests. | |
| name: Automated Tests | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| webdriverio_tests_tip_of_tree_v12: | |
| name: WebdriverIO tests (against tip-of-tree core develop) | |
| # timeout-minutes: 10 | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest] | |
| steps: | |
| - name: Checkout experimentation plugin | |
| uses: actions/checkout@v4 | |
| with: | |
| path: main | |
| - name: Checkout core Blockly | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: 'google/blockly' | |
| ref: 'develop' | |
| path: core-blockly | |
| - name: Use Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - name: NPM install | |
| run: | | |
| cd main | |
| npm install | |
| cd .. | |
| cd core-blockly | |
| npm install | |
| cd .. | |
| - name: Link latest Blockly develop | |
| run: | | |
| cd core-blockly | |
| npm run package | |
| cd dist | |
| npm link | |
| cd ../../main | |
| npm link blockly | |
| cd .. | |
| - name: Build tests | |
| run: | | |
| cd main | |
| npm run wdio:clean | |
| npm run wdio:build | |
| - name: Run tests (up to 50 times) | |
| run: | | |
| cd main/test/webdriverio/test | |
| #for i in $(seq 1 50); | |
| #do | |
| echo "Attempt $i" | |
| npx mocha --timeout 30000 dist | |
| #done | |
| - name: Upload test failure screenshots | |
| if: always() | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: test-failure-screenshots | |
| path: test/webdriverio/test/failures | |
| webdriverio_tests: | |
| name: WebdriverIO tests (against pinned v12) | |
| if: false | |
| timeout-minutes: 10 | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - name: Checkout experimentation plugin | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - name: NPM install | |
| run: npm install | |
| - name: Run tests | |
| run: npm run test:ci |