Skip to content

Commit

Permalink
ci: test eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron de las Alas committed Nov 8, 2023
1 parent 1a9404b commit e6b2276
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 40 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/*
build/*
dist/*
test/*
55 changes: 15 additions & 40 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,43 +46,19 @@ jobs:
with:
path:
node_modules
src/generated
static/microbit
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Store Microbit
uses: actions/upload-artifact@v3
with:
path: static/microbit
- name: Store Generated
uses: actions/upload-artifact@v3
with:
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
# - name: Lint
# run: |
# npm run test:lint -- --quiet --output-file test-results/eslint-results.xml --format junit
# - name: Store Lint Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: test-output
# path: ./test-results/*
- run: mkdirp test/eslint
- name: Lint
run: |
npm run test:lint -- --quiet --output-file test-results/eslint/results.xml
- name: Store Lint Artifacts
uses: actions/upload-artifact@v3
with:
name: test-output
path: ./test-results/*
# test-unit:
# needs: setup
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -113,13 +89,12 @@ jobs:
with:
cache: "npm"
node-version-file: ".nvmrc"
- 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
# - uses: actions/cache@v3
# with:
# path:
# node_modules
# key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- run: npm install
- run: npm run build


Expand Down

0 comments on commit e6b2276

Please sign in to comment.