Skip to content

Commit

Permalink
feat: update ci and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vittominacori committed May 10, 2024
1 parent 9a29cb6 commit a00e285
Show file tree
Hide file tree
Showing 9 changed files with 149 additions and 183 deletions.
7 changes: 4 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Setup

runs:
using: composite
steps:
steps:
- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v4.0.2
with:
node-version: 20

- name: Setup Cache
uses: actions/cache@v4
uses: actions/cache@v4.0.2
id: cache
with:
path: '**/node_modules'
Expand All @@ -18,3 +18,4 @@ runs:
- name: Install dependencies
run: npm ci
shell: bash
if: steps.cache.outputs.cache-hit != 'true'
24 changes: 13 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
FORCE_COLOR: 1
steps:
- name: Setup Code
uses: actions/checkout@v4

uses: actions/checkout@v4.1.4
- name: Setup Environment
uses: ./.github/actions/setup

Expand All @@ -32,14 +32,14 @@ jobs:
FORCE_COLOR: 1
steps:
- name: Setup Code
uses: actions/checkout@v4
uses: actions/checkout@v4.1.4

- name: Setup Environment
uses: ./.github/actions/setup

- name: Run Test
run: npm test

- name: Check Linearisation
run: npm run check:inheritance

Expand All @@ -50,16 +50,16 @@ jobs:
FORCE_COLOR: 1
steps:
- name: Setup Code
uses: actions/checkout@v4
uses: actions/checkout@v4.1.4

- name: Setup Environment
uses: ./.github/actions/setup

- name: Run Coverage
run: npm run coverage

- name: Post to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v4.3.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -70,13 +70,13 @@ jobs:
FORCE_COLOR: 1
steps:
- name: Setup Code
uses: actions/checkout@v4
uses: actions/checkout@v4.1.4

- name: Setup Environment
uses: ./.github/actions/setup

- name: Run Slither
uses: crytic/slither-action@v0.3.2
uses: crytic/slither-action@v0.4.0
with:
node-version: 20

Expand All @@ -86,7 +86,9 @@ jobs:
env:
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v4
- name: Setup Code
uses: actions/[email protected]

- name: Run CodeSpell
uses: codespell-project/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Vittorio Minacori (https://github.com/vittominacori)
Copyright (c) 2024 Vittorio Minacori (https://github.com/vittominacori)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion dist/ERC20Recover.dist.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

// Sources flattened with hardhat v2.22.2 https://hardhat.org
// Sources flattened with hardhat v2.22.3 https://hardhat.org



Expand Down
2 changes: 1 addition & 1 deletion dist/ERC721Recover.dist.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

// Sources flattened with hardhat v2.22.2 https://hardhat.org
// Sources flattened with hardhat v2.22.3 https://hardhat.org



Expand Down
2 changes: 1 addition & 1 deletion dist/TokenRecover.dist.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

// Sources flattened with hardhat v2.22.2 https://hardhat.org
// Sources flattened with hardhat v2.22.3 https://hardhat.org



Expand Down
2 changes: 1 addition & 1 deletion dist/TokenRecoverLegacy.dist.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

// Sources flattened with hardhat v2.22.2 https://hardhat.org
// Sources flattened with hardhat v2.22.3 https://hardhat.org



Expand Down
Loading

0 comments on commit a00e285

Please sign in to comment.