-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (41 loc) · 1.23 KB
/
.travis.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
name: EVM Deployer Boilerplate
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
network: [hardhat]
solidity_version: [0.8.9, 0.8.10]
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Set up Node.js (required for many Solidity tooling)
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
# Install Yarn and dependencies
- name: Install Yarn and dependencies
run: |
npm install --global yarn
yarn install
# Set up Solidity version
- name: Set Solidity version
# copy hardhat.config.compiler-{version}.js to hardhat.config.js
run: |
echo "Using Solidity version ${{ matrix.solidity_version }}"
cp .travisci/hardhat.config.compiler-${{ matrix.solidity_version }}.js hardhat.config.js
# Run build and test for the specified network and Solidity version
- name: Run local CI process
env:
NETWORK: ${{ matrix.network }}
SOLC_VERSION: ${{ matrix.solidity_version }}
run: yarn ci