Skip to content

Commit

Permalink
ci: updaten version of all github actions to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ42 committed Sep 9, 2024
1 parent d5a9f94 commit 0684494
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:
branches:
- "develop"
pull_request:
branches:
- "*"
branches: ["*"]

jobs:
build:
Expand All @@ -18,11 +17,11 @@ jobs:
working-directory: implementations

steps:
- uses: actions/checkout@v2
- name: Setup Node.js 16
uses: actions/setup-node@v2
- uses: actions/checkout@v4
- name: Setup Node.js v20
uses: actions/setup-node@v4
with:
node-version: "16" # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: "20.x" # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
cache: "npm"
cache-dependency-path: implementations/package-lock.json

Expand All @@ -42,7 +41,7 @@ jobs:
run: npm run test:coverage

- name: Upload to Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2
with:
path-to-lcov: ./implementations/coverage/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
exit 1
# step 1: checkout to the correct branch
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

# step 2: setup Node.js to version 16
- name: Setup Node.js 16
uses: actions/setup-node@v2
- name: Setup Node.js v20
uses: actions/setup-node@v4
with:
node-version: "16.x"
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
cache: "npm"
cache-dependency-path: implementations/package-lock.json
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/slither.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Slither Analysis

on:
pull_request:
types: [opened]
branches: ["*"]

# Run Slither only when editing the Solidity code of the smart contracts
paths:
Expand All @@ -13,6 +13,9 @@ on:
jobs:
slither:
runs-on: ubuntu-latest
defaults:
run:
working-directory: implementations

steps:
- name: Checkout repository
Expand All @@ -23,6 +26,7 @@ jobs:
with:
node-version: "20.x"
cache: "npm"
cache-dependency-path: implementations/package-lock.json

- name: 📦 Install Node Modules
run: npm ci
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/solc_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ name: Solidity Compiler Versions

on:
pull_request:
branches:
- "main"
- "develop"
branches: ["*"]

jobs:
solc_version:
Expand Down Expand Up @@ -36,12 +34,12 @@ jobs:
"0.8.21"
]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node.js 16
uses: actions/setup-node@v2
- name: Setup Node.js v20
uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "20.x"
cache: "npm"
cache-dependency-path: implementations/package-lock.json

Expand Down

0 comments on commit 0684494

Please sign in to comment.