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

Optimize and Enable E2E tests on Windows #5339

Closed
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
20 changes: 17 additions & 3 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ jobs:
run-e2e:
strategy:
matrix:
# Disabled windows because it's too slow
# See: https://github.com/NomicFoundation/hardhat/issues/5247
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
name: Run E2E tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
Expand All @@ -29,21 +27,37 @@ jobs:
IS_WINDOWS: ${{ matrix.os == 'windows-latest' }}
steps:
- uses: actions/checkout@v4

- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-

- uses: pnpm/action-setup@v2
with:
version: 9

- uses: actions/setup-node@v4
with:
node-version: 18

- name: Install dependencies
run: pnpm install

- name: Run fixture-projects script
run: |
cd e2e
chmod +x run-fixture-projects.sh
./run-fixture-projects.sh
shell: bash

- name: Run test-project-initialization script
run: |
cd e2e
chmod +x test-project-initialization.sh
./test-project-initialization.sh
shell: bash