-
Notifications
You must be signed in to change notification settings - Fork 16
33 lines (31 loc) · 1.23 KB
/
main.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
name: Auction SmartContracts CI
on:
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Setup SmartContracts
run: yarn
- name: Test SmartContracts
run: yarn test
- name: check artifacts
run: |
yarn compile
cp artifacts/contracts/hermez/Hermez.sol/Hermez.json compiled-contracts/
cp artifacts/contracts/hermez/lib/InstantWithdrawManager.sol/InstantWithdrawManager.json compiled-contracts/
cp artifacts/contracts/hermez/lib/HermezHelpers.sol/HermezHelpers.json compiled-contracts/
cp artifacts/contracts/auction/HermezAuctionProtocol.sol/HermezAuctionProtocol.json compiled-contracts/
cp artifacts/contracts/withdrawalDelayer/WithdrawalDelayer.sol/WithdrawalDelayer.json compiled-contracts/
# This line checks that there is no change in the repository after compiling the contracts
[[ -z $(git status -s) ]] || exit 1