Skip to content

Commit

Permalink
upgrade github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mtabasco committed Apr 11, 2024
1 parent ed84f4c commit 72fc9ae
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 21 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/code-coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: Solidity code coverage

on:
push:
on: [push]

jobs:
ci:
runs-on: ubuntu-latest

name: Solidity code coverage
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '20.x'
- run: npm ci
env:
GH_TOKEN: ${{ secrets.github_token }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ on:
jobs:
ci:
runs-on: ubuntu-latest
name: Solidity linter
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '20.x'
- run: npm ci
env:
GH_TOKEN: ${{ secrets.github_token }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run Slither
uses: crytic/[email protected].0
uses: crytic/[email protected].2
id: slither
with:
node-version: 18
node-version: 20
fail-on: high
slither-args: --exclude controlled-delegatecall
11 changes: 5 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: Run tests

on:
push:
on: [push]

jobs:
ci:
runs-on: ubuntu-latest

name: Hardhat unit test
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '20.x'
- run: npm ci
env:
GH_TOKEN: ${{ secrets.github_token }}
Expand Down
23 changes: 23 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": "solhint:recommended",
"plugins": [],
"rules": {
"avoid-suicide": "error",
"avoid-sha3": "warn",
"comprehensive-interface": "warn",
"func-visibility": [
"warn",
{
"ignoreConstructors": true
}
],
"ordering": "warn",
"mark-callable-contracts": "off",
"max-line-length": [
"error",
120
],
"compiler-version": "off",
"not-rely-on-time": "off"
}
}

0 comments on commit 72fc9ae

Please sign in to comment.