lint(e2e): fix lint in e2e project #14945
Workflow file for this run
This file contains 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: CI | |
on: | |
push: ~ | |
pull_request: ~ | |
schedule: | |
- cron: '0 12 * * *' | |
jobs: | |
build_and_test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [16.x, 18.x] | |
os: ['ubuntu-latest', 'windows-latest'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
- name: Install dependencies | |
run: npm ci || npm ci # retry once, install on windows is flaky... | |
- name: Build & lint & test | |
run: npm run all | |
incremental_mutation_test: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Download incremental reports | |
run: npm run download-incremental-reports | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
- name: Run stryker run --incremental | |
run: npm run test:mutation:incremental | |
env: | |
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | |
e2e: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest', 'windows-latest'] | |
steps: | |
# https://github.com/ryanclark/karma-webpack/issues/494 | |
- name: Windows temp dir fix | |
run: | | |
echo TEMP="D:\Temp" >> $env:GITHUB_ENV | |
echo TMP="D:\Temp" >> $env:GITHUB_ENV | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
- name: Install dependencies | |
run: npm ci || npm ci # retry once, install on windows is flaky... | |
- name: Build packages | |
run: npm run build | |
- name: e2e install | |
run: 'npm run e2e:install' | |
- name: e2e lint | |
run: 'npm run e2e:lint' | |
- name: Run e2e tests | |
run: 'npm run e2e:run' | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: e2e-reports | |
path: | | |
e2e/test/*/reports/mutation/ | |
e2e/test/*/stryker.log |