Skip to content

Commit

Permalink
chore(ci): use corepack instead of pnpm/action-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tamtamchik committed Feb 7, 2024
1 parent 71367e7 commit 624bdbc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 27 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/analyse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
slither:
name: Solidity code analysis
runs-on: ubuntu-latest

permissions:
Expand All @@ -19,11 +20,7 @@ jobs:
with:
persist-credentials: false

# here and below steps taken from official guide
# https://pnpm.io/continuous-integration#github-actions
- uses: pnpm/action-setup@v2
with:
version: 8
- run: corepack enable

- uses: actions/setup-node@v4
with:
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ jobs:
with:
persist-credentials: false

# here and below steps taken from official guide
# https://pnpm.io/continuous-integration#github-actions
- uses: pnpm/action-setup@v2
with:
version: 8
- run: corepack enable

- name: Setup node.js version
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
Expand All @@ -42,12 +37,9 @@ jobs:
with:
persist-credentials: false

- uses: pnpm/action-setup@v2
with:
version: 8
- run: corepack enable

- name: Setup node.js version
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ jobs:
with:
persist-credentials: false

- uses: pnpm/action-setup@v2
with:
version: 8
- run: corepack enable

- name: Setup node.js version
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
Expand All @@ -37,12 +34,9 @@ jobs:
with:
persist-credentials: false

- uses: pnpm/action-setup@v2
with:
version: 8
- run: corepack enable

- name: Setup node.js version
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
Expand Down

0 comments on commit 624bdbc

Please sign in to comment.