Skip to content

Commit

Permalink
ci: test the correct job
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron de las Alas committed Nov 6, 2023
1 parent 17bd936 commit 34d1eeb
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,23 @@ jobs:
# with:
# name: test-output
# path: ./test-results/*
test-unit:
needs: setup
runs-on: ubuntu-latest
env:
JEST_JUNIT_OUTPUT_NAME: unit-results.xml
steps:
- uses: actions/checkout@v4
- name: Cache NPM dependencies
uses: actions/cache@v3
with:
path:
node_modules
src/generated
static/microbit
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Run Unit Tests
run: npm run test:unit -- --reporters="default" --reporters="jest-junit" --coverage --coverageReporters=text --coverageReporters=lcov --maxWorkers="2"
# test-unit:
# needs: setup
# runs-on: ubuntu-latest
# env:
# JEST_JUNIT_OUTPUT_NAME: unit-results.xml
# steps:
# - uses: actions/checkout@v4
# - name: Cache NPM dependencies
# uses: actions/cache@v3
# with:
# path:
# node_modules
# src/generated
# static/microbit
# key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
# - name: Run Unit Tests
# run: npm run test:unit -- --reporters="default" --reporters="jest-junit" --coverage --coverageReporters=text --coverageReporters=lcov --maxWorkers="2"
build:
needs: setup
env:
Expand All @@ -94,8 +94,12 @@ jobs:
with:
path:
node_modules
src/generated
static/microbit
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- run: npm list
- run: ls -la src/generated
- run: ls -la static/microbit
- run: npm run build

# - name: Setup & Test
Expand Down

0 comments on commit 34d1eeb

Please sign in to comment.