Skip to content

Commit

Permalink
ci: add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron de las Alas committed Nov 13, 2023
1 parent 1e4c9a2 commit 5ee9af6
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,21 @@ jobs:
path:
static/microbit
key: ${{ runner.os }}-microbit-${{ hashFiles('package-lock.json') }}
# 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
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 Down

0 comments on commit 5ee9af6

Please sign in to comment.