-
Notifications
You must be signed in to change notification settings - Fork 162
43 lines (43 loc) · 1.54 KB
/
CI-plugin.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
name: Plugin CI
on:
pull_request:
push:
branches:
- master
jobs:
test-waffle-hardhat-plugin:
runs-on: ubuntu-latest
strategy:
matrix:
hardhat: ['2.9.2', '2.11.2', 'latest']
hardhat-ethers: ['2.0.3', '2.1.1', 'latest']
hardhat-waffle: ['linked', 'latest']
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
- run: npm i -g [email protected] [email protected]
- run: pnpm install --frozen-lockfile --strict-peer-dependencies
- run: pnpm add -D hardhat@${{ matrix.hardhat }}
working-directory: waffle-hardhat
- run: pnpm add -D @nomiclabs/hardhat-ethers@${{ matrix.hardhat-ethers }}
working-directory: waffle-hardhat
- run: pnpm add -D @nomiclabs/hardhat-waffle@${{ matrix.hardhat-waffle }}
if: ${{ matrix.hardhat-waffle != 'linked' }}
working-directory: waffle-hardhat
- name: Initialize plugin submodule
if: ${{ matrix.hardhat-waffle == 'linked' }}
run: |
git submodule update --init
cd hardhat-waffle-plugin
yarn && yarn build
- name: Use the submodule in our tests
if: ${{ matrix.hardhat-waffle == 'linked' }}
run: |
rm -rf waffle-hardhat/node_modules/@nomiclabs/hardhat-waffle/dist
cp -r hardhat-waffle-plugin/dist waffle-hardhat/node_modules/@nomiclabs/hardhat-waffle
- run: pnpm run build
- run: pnpm run test
working-directory: waffle-hardhat