Skip to content

Commit

Permalink
ci: revert and try storing test artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron de las Alas committed Nov 9, 2023
1 parent 5e60ad3 commit 1e4c9a2
Showing 1 changed file with 35 additions and 36 deletions.
71 changes: 35 additions & 36 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,34 +43,32 @@ jobs:
- name: Lint
run: |
npm run test:lint -- --quiet --output-file test-results/eslint/results.xml --format junit
# - name: Store Lint Results
# uses: actions/upload-artifact@v3
# with:
# name: test-output
# path: ./test-results/*
- name: Cache node modules
- name: Store Lint Results
uses: actions/upload-artifact@v3
with:
name: test-output
path: ./test-results/*
- name: Cache node_modules
id: cache-nodemodules
uses: actions/cache@v3
with:
path:
node_modules
static/microbit
src/generated
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
# - name: Cache generated
# id: cache-generated
# uses: actions/cache@v3
# with:
# path:
# src/generated
# key: ${{ runner.os }}-generated-${{ hashFiles('package-lock.json') }}
# - name: Cache generated
# id: cache-static
# uses: actions/cache@v3
# with:
# path:
# static/microbit
# key: ${{ runner.os }}-microbit-${{ hashFiles('package-lock.json') }}
- name: Cache src/generated
id: cache-generated
uses: actions/cache@v3
with:
path:
src/generated
key: ${{ runner.os }}-generated-${{ hashFiles('package-lock.json') }}
- name: Cache static/microbit
id: cache-static
uses: actions/cache@v3
with:
path:
static/microbit
key: ${{ runner.os }}-microbit-${{ hashFiles('package-lock.json') }}
# test-unit:
# needs: setup
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -100,22 +98,23 @@ jobs:
with:
cache: "npm"
node-version-file: ".nvmrc"
- uses: actions/cache@v3
- name: Retrieve node_modules
uses: actions/cache@v3
with:
path:
node_modules
static/microbit
src/generated
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
# - uses: actions/cache@v3
# with:
# path:
# src/generated
# key: ${{ runner.os }}-generated-${{ hashFiles('package-lock.json') }}
# - uses: actions/cache@v3
# with:
# path:
# static/microbit
# key: ${{ runner.os }}-microbit-${{ hashFiles('package-lock.json') }}
- name: Retrieve src/generated
uses: actions/cache@v3
with:
path:
src/generated
key: ${{ runner.os }}-generated-${{ hashFiles('package-lock.json') }}
- name: Retireve static/microbit
uses: actions/cache@v3
with:
path:
static/microbit
key: ${{ runner.os }}-microbit-${{ hashFiles('package-lock.json') }}
- name: Run Build
run: npm list
run: npm run build

0 comments on commit 1e4c9a2

Please sign in to comment.