Skip to content

chore: Switch to vitest for testing #276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading