Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
work on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
simonDos committed Jan 31, 2024
1 parent 7e5e5de commit af597b2
Show file tree
Hide file tree
Showing 7 changed files with 4,093 additions and 202 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@ name: CI

on:
push:
branches:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
registry-url: 'https://registry.npmjs.org'
- name: Cache npm dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Install npm dependencies
run: npm install
- name: Process templates
run: npm run template:process
- name: Run tests
run: npm run test:ci
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2-beta
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- name: Cache npm dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Install npm dependencies
run: npm install
- name: Process templates
run: npm run template:process
- name: Run tests
run: npm run test:ci
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
src = 'contracts'
out = 'out'
libs = ['node_modules']
test = 'test'
match-path = 'test/foundry'
optimizer = true
optimizer_runs = 200
via_ir = true
Expand Down
4 changes: 2 additions & 2 deletions hardhat.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ const networks = () => {
accounts: [process.env.PK_MAINNET],
},
};
} else if (process.env.SOLIDITY_COVERAGE) {
console.log("using local hardhat network, so we don't overload infura")
} else if (process.env.LOCAL_NETWORK) {
console.log("using local hardhat network, so we don't overload infura");
return {
hardhat: {
blockGasLimit: 20000000,
Expand Down
Loading

0 comments on commit af597b2

Please sign in to comment.