-
-
Notifications
You must be signed in to change notification settings - Fork 5
66 lines (51 loc) · 1.25 KB
/
cross[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
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Cross Hardhat
on:
push:
branches:
- main
tags:
pull_request:
branches:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
working-directory: ./hardhat
env:
envfile: ${{secrets.ENVHARDHAT}}
MODE: test
NODE_ENV: testing
jobs:
build:
timeout-minutes: 10
strategy:
max-parallel: 2
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node_version: [18, 19, 20]
architecture: [x64]
runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.6.6
- uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.architecture }}
check-latest: true
- name: Write environment
shell: bash
run: |
echo $envfile > .env.tmp
sed 's/ /\n/g' .env.tmp > .env
- name: Install dependencies
run: pnpm install
- name: Build
run: npm run build