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

Commit

Permalink
update ci, gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
simonDos committed Feb 5, 2024
1 parent c6d5e03 commit f5e2200
Show file tree
Hide file tree
Showing 13 changed files with 4,261 additions and 416 deletions.
61 changes: 41 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,51 @@ 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@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"

- name: Cache npm dependencies
uses: actions/cache@v4
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 Coverage and Hardhat tests
run: npm run test:ci

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: Run Forge tests
run: |
forge test -vvv
id: test
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ contractAddresses.json


# ignore generated files
src/root/predicates/TransferWithSigUtils.sol
src/common/mixin/ChainIdMixin.sol
contracts/root/predicates/TransferWithSigUtils.sol
contracts/common/mixin/ChainIdMixin.sol
test/helpers/marketplaceUtils.js
cache_hardhat
forge-cache
Expand Down
6 changes: 0 additions & 6 deletions contracts/common/mixin/ChainIdMixin.sol

This file was deleted.

62 changes: 0 additions & 62 deletions contracts/root/predicates/TransferWithSigUtils.sol

This file was deleted.

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");
return {
hardhat: {
blockGasLimit: 20000000,
Expand Down
Loading

0 comments on commit f5e2200

Please sign in to comment.