Skip to content

Commit

Permalink
Merge pull request #7 from nicolas-chaulet/ci/unittest
Browse files Browse the repository at this point in the history
test(ci): match steps from CircleCI
  • Loading branch information
nicolas-chaulet authored Jan 29, 2024
2 parents d206b42 + d12d999 commit 0b6c6bc
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,32 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Checkout
uses: actions/[email protected]

- name: Setup Node environment
uses: actions/[email protected]
with:
node-version: 20

- name: Cache Modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- run: npm install
- run: npm run test

- name: Install dependencies
run: npm install

- name: Build library
run: npm run release

- name: Run unit tests
run: npm run test

# - name: Run e2e tests
# run: npm run test:e2e

# - name: Submit to Codecov
# run: npm run codecov

0 comments on commit 0b6c6bc

Please sign in to comment.