-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from nicolas-chaulet/ci/unittest
test(ci): match steps from CircleCI
- Loading branch information
Showing
1 changed file
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|