Skip to content

Commit

Permalink
ci: try with artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron de las Alas committed Nov 8, 2023
1 parent 7bb44ad commit 1a9404b
Showing 1 changed file with 32 additions and 16 deletions.
48 changes: 32 additions & 16 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,34 @@ jobs:
env:
cache-name: ${{ secrets.CACHE_NAME }}
with:
# caching node_modules
path:
node_modules
src/generated
static/microbit
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Cache microbit
id: cache-microbit
uses: actions/cache@v3
- name: Store Microbit
uses: actions/upload-artifact@v3
with:
path:
static/microbit
key: ${{ runner.os }}-microbit-${{ hashFiles('package-lock.json') }}
- name: Cache node modules
id: cache-generated
uses: actions/cache@v3
path: static/microbit
- name: Store Generated
uses: actions/upload-artifact@v3
with:
path:
src/generated
key: ${{ runner.os }}-generated-${{ hashFiles('package-lock.json') }}
path: src/generated

# - name: Cache microbit
# id: cache-microbit
# uses: actions/cache@v3
# with:
# path:
# static/microbit
# key: ${{ runner.os }}-microbit-${{ hashFiles('package-lock.json') }}
# - name: Cache node modules
# id: cache-generated
# uses: actions/cache@v3
# with:
# path:
# src/generated
# key: ${{ runner.os }}-generated-${{ hashFiles('package-lock.json') }}
- name: Install Dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: npm ci
Expand Down Expand Up @@ -103,10 +113,16 @@ jobs:
with:
cache: "npm"
node-version-file: ".nvmrc"
- name: Install Dependencies
run: npm install
- run: npm list
- uses: actions/cache@v3
with:
path:
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
- run: npm run build


# - name: Setup & Test
# run: |
# mkdir -p ./test/results
Expand Down

0 comments on commit 1a9404b

Please sign in to comment.