Skip to content

Commit 0bc76e6

Browse files
committed
use solidity 0.8.19 for github action benchmark
1 parent 78fdf78 commit 0bc76e6

File tree

1 file changed

+78
-78
lines changed

1 file changed

+78
-78
lines changed

.github/workflows/ci.yml

Lines changed: 78 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,81 @@
11
name: safe-contracts
2-
on: [ push, pull_request ]
2+
on: [push, pull_request]
33

44
jobs:
5-
tests:
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v2
9-
- uses: actions/setup-node@v2
10-
with:
11-
node-version: 16.7.0
12-
- uses: actions/cache@v2
13-
with:
14-
path: "**/node_modules"
15-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
16-
- run: yarn --frozen-lockfile
17-
- run: yarn build
18-
- run: yarn coverage
19-
- name: Coveralls
20-
uses: coverallsapp/github-action@master
21-
with:
22-
github-token: ${{ secrets.GITHUB_TOKEN }}
23-
lint:
24-
runs-on: ubuntu-latest
25-
steps:
26-
- uses: actions/checkout@v2
27-
- uses: actions/setup-node@v2
28-
with:
29-
node-version: 16.7.0
30-
- uses: actions/cache@v2
31-
with:
32-
path: "**/node_modules"
33-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
34-
- run: yarn --frozen-lockfile
35-
- run: yarn lint:sol
36-
tests-other:
37-
runs-on: ubuntu-latest
38-
strategy:
39-
fail-fast: false
40-
matrix:
41-
contract-name: ["SafeL2"]
42-
env:
43-
SAFE_CONTRACT_UNDER_TEST: ${{ matrix.contract-name }}
44-
steps:
45-
- uses: actions/checkout@v2
46-
- uses: actions/setup-node@v2
47-
with:
48-
node-version: 16.7.0
49-
- uses: actions/cache@v2
50-
with:
51-
path: "**/node_modules"
52-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
53-
- run: yarn --frozen-lockfile
54-
- run: yarn build
55-
- run: yarn coverage
56-
- name: Coveralls
57-
uses: coverallsapp/github-action@master
58-
with:
59-
github-token: ${{ secrets.GITHUB_TOKEN }}
60-
benchmarks:
61-
runs-on: ubuntu-latest
62-
strategy:
63-
fail-fast: false
64-
matrix:
65-
solidity: ["0.7.6", "0.8.2"]
66-
include:
67-
- solidity: "0.8.2"
68-
settings: '{"viaIR":true,"optimizer":{"enabled":true,"runs":10000}}'
69-
env:
70-
SOLIDITY_VERSION: ${{ matrix.solidity }}
71-
SOLIDITY_SETTINGS: ${{ matrix.settings }}
72-
steps:
73-
- uses: actions/checkout@v2
74-
- uses: actions/setup-node@v2
75-
with:
76-
node-version: 16.7.0
77-
- uses: actions/cache@v2
78-
with:
79-
path: "**/node_modules"
80-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
81-
- run: (yarn --frozen-lockfile && yarn build && yarn hardhat codesize --contractname Safe && yarn benchmark) || echo "Benchmark failed"
5+
tests:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions/setup-node@v2
10+
with:
11+
node-version: 16.7.0
12+
- uses: actions/cache@v2
13+
with:
14+
path: "**/node_modules"
15+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
16+
- run: yarn --frozen-lockfile
17+
- run: yarn build
18+
- run: yarn coverage
19+
- name: Coveralls
20+
uses: coverallsapp/github-action@master
21+
with:
22+
github-token: ${{ secrets.GITHUB_TOKEN }}
23+
lint:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: actions/setup-node@v2
28+
with:
29+
node-version: 16.7.0
30+
- uses: actions/cache@v2
31+
with:
32+
path: "**/node_modules"
33+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
34+
- run: yarn --frozen-lockfile
35+
- run: yarn lint:sol
36+
tests-other:
37+
runs-on: ubuntu-latest
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
contract-name: ["SafeL2"]
42+
env:
43+
SAFE_CONTRACT_UNDER_TEST: ${{ matrix.contract-name }}
44+
steps:
45+
- uses: actions/checkout@v2
46+
- uses: actions/setup-node@v2
47+
with:
48+
node-version: 16.7.0
49+
- uses: actions/cache@v2
50+
with:
51+
path: "**/node_modules"
52+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
53+
- run: yarn --frozen-lockfile
54+
- run: yarn build
55+
- run: yarn coverage
56+
- name: Coveralls
57+
uses: coverallsapp/github-action@master
58+
with:
59+
github-token: ${{ secrets.GITHUB_TOKEN }}
60+
benchmarks:
61+
runs-on: ubuntu-latest
62+
strategy:
63+
fail-fast: false
64+
matrix:
65+
solidity: ["0.7.6", "0.8.19"]
66+
include:
67+
- solidity: "0.8.19"
68+
settings: '{"viaIR":true,"optimizer":{"enabled":true,"runs":10000}}'
69+
env:
70+
SOLIDITY_VERSION: ${{ matrix.solidity }}
71+
SOLIDITY_SETTINGS: ${{ matrix.settings }}
72+
steps:
73+
- uses: actions/checkout@v2
74+
- uses: actions/setup-node@v2
75+
with:
76+
node-version: 16.7.0
77+
- uses: actions/cache@v2
78+
with:
79+
path: "**/node_modules"
80+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
81+
- run: (yarn --frozen-lockfile && yarn build && yarn hardhat codesize --contractname Safe && yarn benchmark) || echo "Benchmark failed"

0 commit comments

Comments
 (0)