Skip to content

Run gas report and coverage in e2e #745

Run gas report and coverage in e2e

Run gas report and coverage in e2e #745

Workflow file for this run

name: E2E tests
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
run-e2e:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: Run E2E tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
# TODO: the e2e tests fail on windows when pnpm is used,
# for what we think is a bug in pnpm. We set this env
# variable to skip that combination until we find a solution.
#
# The failure is caused by `pnpm hardhat init` executing
# `hardhat init` twice on windows, which results in the
# second execution failing because `hardhat init` cannot
# be run on an existing project.
IS_WINDOWS: ${{ matrix.os == 'windows-latest' }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
with:
node-version: 18
- 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