ci: update Nightwatch workflow to fix wmic.exe issue #19
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: Nightwatch Tests | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x] | |
| browser: [chrome, firefox] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Install Firefox (if needed) | |
| if: matrix.browser == 'firefox' | |
| run: sudo apt-get update && sudo apt-get install -y firefox | |
| - name: Install XVFB | |
| run: sudo apt-get install xvfb | |
| - name: Run Nightwatch tests on ${{ matrix.browser }} | |
| run: xvfb-run --auto-servernum npm run ci-test -- --env ${{ matrix.browser }} |