Skip to content

Commit

Permalink
chore: Switch to vitest for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
  • Loading branch information
GordonSmith committed Sep 29, 2024
1 parent 7c3a202 commit 9c0b24b
Show file tree
Hide file tree
Showing 101 changed files with 2,373 additions and 4,818 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,17 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
run: |
npm ci
sudo npx playwright install chromium --with-deps
npm run install-build-deps
- name: Build
if: ${{ steps.release.outputs.release_created }}
- name: Lint
run: |
npm run build
npm run lint
- name: Prime gecko webdriver
- name: Build
if: ${{ steps.release.outputs.release_created }}
working-directory: packages/base91
run: |
npm run test || echo "Prime gecko webdriver"
npm run build
- name: Test
if: ${{ steps.release.outputs.release_created }}
Expand All @@ -77,13 +76,12 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
run: |
npm run coverage
npm run coverage-report
- name: Update Coveralls
if: ${{ steps.release.outputs.release_created }}
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Update Coveralls
# if: ${{ steps.release.outputs.release_created }}
# uses: coverallsapp/github-action@v2
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish
if: ${{ steps.release.outputs.release_created }}
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ jobs:
- name: Install Dependencies
run: |
npm ci
sudo npx playwright install chromium --with-deps
npm run install-build-deps
- name: Lint
run: |
npm run lint
Expand All @@ -55,11 +56,6 @@ jobs:
run: |
npm run build
- name: Prime gecko webdriver
working-directory: packages/base91
run: |
npm run test || echo "Prime gecko webdriver"
- name: Test
run: |
npm run test
Expand All @@ -68,7 +64,6 @@ jobs:
if: ${{ matrix.node == 20 }}
run: |
npm run coverage
npm run coverage-report
- name: Upload error logs
if: ${{ failure() || cancelled() }}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.nx/
bin/
build/
/coverage
coverage/
dist/
dist-test/
/docs/.vitepress/cache
Expand Down
Loading

0 comments on commit 9c0b24b

Please sign in to comment.