Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test with coverage only for Linux to prevent out of memory #502

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ jobs:

- name: Install stylelint v15
run: npm i -D stylelint@^15
if: matrix.stylelint == 15
if: ${{ matrix.stylelint == '15' }}

- name: Install stylelint v14
run: npm i -D stylelint@^14 stylelint-scss@^4.3.0
if: matrix.stylelint == 14
if: ${{ matrix.stylelint == '14' }}

- name: Cache VS Code binaries
uses: actions/cache@v4
Expand All @@ -68,15 +68,25 @@ jobs:
run: npm run download-vscode

- name: Run unit tests
run: npm run test:unit
if: ${{ runner.os != 'Linux' }}

- name: Run unit tests (coverage)
run: npm run test:unit -- --coverage
if: ${{ runner.os == 'Linux' }}

- name: Run integration tests
run: npm run test:integration
if: ${{ runner.os != 'Linux' }}

- name: Run integration tests (coverage)
run: npm run test:integration -- --coverage
if: ${{ runner.os == 'Linux' }}

- name: Run end-to-end tests (Linux)
if: runner.os == 'Linux'
run: xvfb-run -a npm run test:e2e -- --silent
if: ${{ runner.os == 'Linux' }}

- name: Run end-to-end tests (non-Linux)
if: runner.os != 'Linux'
run: npm run test:e2e -- --silent
if: ${{ runner.os != 'Linux' }}
Loading