Skip to content

Commit

Permalink
Update workflow scripts (#563)
Browse files Browse the repository at this point in the history
* Update workflow scripts

* use node 20 + upgrade hardhat
  • Loading branch information
ezynda3 authored Dec 7, 2023
1 parent a92af41 commit 44bae50
Show file tree
Hide file tree
Showing 6 changed files with 187 additions and 139 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/forge.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Forge
on:
push:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -18,17 +18,17 @@ jobs:
POLYGON_FORK_NUMBER: ${{ secrets.POLYGON_FORK_NUMBER }}
FORK_NUMBER_POLYGON: 36004499
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
with:
submodules: recursive
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4.0.0
with:
node-version: '16'
node-version: 20
- name: Install dev dependencies
run: yarn install

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

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/slither.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: crytic/slither-action@v0.1.1
- uses: actions/checkout@v4.1.1
- uses: crytic/slither-action@v0.3.0
with:
node-version: 16
node-version: 20
continue-on-error: true
6 changes: 3 additions & 3 deletions .github/workflows/types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
run: forge install

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4.0.0
with:
node-version: 16
node-version: 20

- name: Install Node deps
run: yarn install
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
id: bump_version
uses: christian-draeger/[email protected]
with:
current-version: "${{ env.LATEST_TAG }}"
current-version: '${{ env.LATEST_TAG }}'
version-fragment: "${{ env.BRANCH_NAME == 'main' && (contains(github.event.head_commit.message, 'major') && 'major' || contains(github.event.head_commit.message, 'feat') && 'feature' || 'bug') || 'beta' }}"

- name: Push tag
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"eslint-plugin-import": "^2.27.5",
"ethers": "5.7.2",
"fs-extra": "^10.0.1",
"hardhat": "2.12.7",
"hardhat": "^2.19.1",
"hardhat-deploy": "^0.11.34",
"hardhat-preprocessor": "^0.1.5",
"husky": "^8.0.1",
Expand Down
18 changes: 18 additions & 0 deletions slither.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"filter_paths": "lib",
"solc_remaps": [
"@eth-optimism/=node_modules/@hop-protocol/sdk/node_modules/@eth-optimism/",
"@uniswap/=node_modules/@uniswap/",
"eth-gas-reporter/=node_modules/eth-gas-reporter/",
"hardhat/=node_modules/hardhat/",
"hardhat-deploy/=node_modules/hardhat-deploy/",
"@openzeppelin/=lib/openzeppelin-contracts/",
"celer-network/=lib/sgn-v2-contracts/",
"create3-factory/=lib/create3-factory/src/",
"solmate/=lib/solmate/src/",
"ds-test/=lib/ds-test/src/",
"forge-std/=lib/forge-std/src/",
"lifi/=src/",
"test/=test/"
]
}
Loading

0 comments on commit 44bae50

Please sign in to comment.