-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (34 loc) · 865 Bytes
/
test.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
name: Hardhat Test Suite
on:
push:
branches:
- main
pull_request:
workflow_call:
secrets:
MAINNET_RPC_URL:
required: true
jobs:
hardhat:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- executooor-ethers
- executooor-viem
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:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}