Skip to content

Commit

Permalink
test: separate windows tests into another job (#6289)
Browse files Browse the repository at this point in the history
* test: separate windows tests into another job

this will allow us to up the timeout time for that alone
without affecting the ubuntu and macos tests

* chore: remove outdated comments

windows tests are being re-added in this PR

* chore: rename e2e test for linux-based ones

they're not being picked up correctly and they're required

* chore: remove installation of pnpm

we weren't using it

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
ericapisani and kodiakhq[bot] authored Jan 9, 2024
1 parent 5d2ce5f commit a4b7449
Showing 1 changed file with 50 additions and 9 deletions.
59 changes: 50 additions & 9 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,62 @@ on:
- cron: '0 1 * * *' # At 01:00 daily

jobs:
e2e:
name: E2E
e2e-windows:
name: E2E Windows tests
runs-on: ${{ matrix.os }}
timeout-minutes: 20
env:
DEBUG: true
strategy:
matrix:
# TODO: E2E tests started failing on Windows. We should investigate the
# root cause and add Windows back to the OS matrix:
# https://github.com/netlify/cli/pull/6039
#
# os: [ubuntu-latest, macOS-latest, windows-latest]
os: [windows-latest]
node-version: ['18.14.0', '*']
fail-fast: false

steps:
- name: Git checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Cache verdaccio storage
uses: actions/cache@v3
with:
path: ./.verdaccio-storage
key: verdaccio-e2e-cli-${{ hashFiles('./package-lock.json') }}
- name: Install dependencies
run: npm ci --no-audit
- run: npm run e2e
- name: Notify Slack
uses: 8398a7/action-slack@v3
if: ${{ github.event_name == 'schedule' && failure() }}
with:
status: custom
fields: workflow
custom_payload: |
{
attachments: [{
title: 'E2E Test Failed! (${{ matrix.os }},node-${{ matrix.node-version }}',
color: 'danger',
text: `${process.env.AS_WORKFLOW}\n\nEither something broke or a test is flaky.\n\nConsider doing something about it :fire_engine:`,
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

e2e-linux-based-os:
name: E2E
runs-on: ${{ matrix.os }}
timeout-minutes: 10
env:
DEBUG: true
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
node-version: ['18.14.0', '*']
fail-fast: false
Expand All @@ -45,8 +88,6 @@ jobs:
key: verdaccio-e2e-cli-${{ hashFiles('./package-lock.json') }}
- name: Install dependencies
run: npm ci --no-audit
- name: Install pnpm
run: npm install -g pnpm
- run: npm run e2e
- name: Notify Slack
uses: 8398a7/action-slack@v3
Expand Down

1 comment on commit a4b7449

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,410
  • Package size: 422 MB
  • Number of ts-expect-error directives: 1,182

Please sign in to comment.