forked from ethereumjs/ethereumjs-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.31 KB
/
e2e-hardhat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: E2E Hardhat Tests
on:
push:
branches:
- master
tags:
- '*'
pull_request:
types: [opened, reopened, synchronize]
env:
cwd: ${{github.workspace}}
jobs:
e2e-hardhat:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Use npm v7 for workspaces support
run: npm i -g npm@7
- run: npm i
working-directory: ${{github.workspace}}
# Publish all packages to virtual npm registry
# after giving each a minor version bump
- name: Publish to virtual registry
run: npm run e2e:publish
# Generate the resolutions file
- name: Generate e2e resolutions
run: npm run e2e:resolutions
# Clone hardhat repo, inject proxied dependencies, and run tests
- name: Build hardhat and test with new EthereumJS dependencies
run: bash ./scripts/e2e-hardhat.sh
env:
FORCE_COLOR: 3
- name: Remove hardhat directory to clean working state (for saving dependency cache)
run: rm -rf hardhat