-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (36 loc) · 955 Bytes
/
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
name: Hardhat Test Suite
on:
push:
branches:
- main
pull_request:
workflow_call:
secrets:
ALCHEMY_KEY:
required: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
hardhat:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- @morpho-org/bundlers-sdk-ethers
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- run: yarn --immutable
- uses: actions/cache@v4
with:
path: |
packages/${{ matrix.package }}/cache/
packages/${{ matrix.package }}/artifacts/
key: ${{ github.base_ref || github.ref_name }}-${{ matrix.package }}-hardhat
- run: yarn workspace ${{ matrix.package }} test
env:
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}