-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include basic tests
- Loading branch information
Showing
10 changed files
with
811 additions
and
21 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: 'Tests: E2E' | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
tests-e2e: | ||
name: Run end-to-end tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/ms-playwright | ||
key: Linux-playwright-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: Linux-playwright- | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
# prettier-ignore | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: ${{ runner.os }}-pnpm- | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6.0.2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
- name: Install dependencies | ||
run: pnpm i | ||
- name: Install playwright browsers | ||
run: npx playwright install --with-deps | ||
- name: Test | ||
run: pnpm run test | ||
env: | ||
PUBLIC_FATHOM_ID: ${{ secrets.PUBLIC_FATHOM_ID }} | ||
PUBLIC_FATHOM_URL: ${{ secrets.PUBLIC_FATHOM_URL }} |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: 'Tests: Unit' | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
unit-tests: | ||
name: Run unit tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: | ||
# prettier-ignore | ||
${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6.0.2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Build | ||
run: pnpm run build | ||
env: | ||
PUBLIC_FATHOM_ID: ${{ secrets.PUBLIC_FATHOM_ID }} | ||
PUBLIC_FATHOM_URL: ${{ secrets.PUBLIC_FATHOM_URL }} | ||
- name: Test | ||
run: pnpm run test:ci |
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
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
Oops, something went wrong.
398854d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
cv – ./
cv-git-main-spences10.vercel.app
cv-spences10.vercel.app
mecv.xyz
www.mecv.xyz