Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
eternauta1337 committed Feb 28, 2024
1 parent 677dd79 commit 05b8d36
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/ci1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,34 @@ jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: Cache npm dependencies
id: cache-dependencies
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-node_modules
with:
path: '~/.npm'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
common:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Node.js with cache
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm run build --if-present
Expand All @@ -54,7 +58,7 @@ jobs:
# uses: foundry-rs/foundry-toolchain@v1
# id: foundry-install
# - name: Cache Foundry
# uses: actions/cache@v2
# uses: actions/cache@v3
# with:
# path: |
# ~/.foundry
Expand All @@ -68,9 +72,9 @@ jobs:
# needs: [setup, install-foundry]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/checkout@v3
# - name: Setup Node.js with cache
# uses: actions/setup-node@v2
# uses: actions/setup-node@v3
# with:
# node-version: '20.x'
# - run: npm run build --if-present
Expand Down

0 comments on commit 05b8d36

Please sign in to comment.