From d4a0127bfb553c42352c0453b7e00c2cdfd69b4d Mon Sep 17 00:00:00 2001 From: Micah Engle-Eshleman Date: Sat, 12 Oct 2024 23:18:36 -0700 Subject: [PATCH 1/2] Run unit tests in Github Actions --- .github/workflows/playwright.yml | 4 ++-- .github/workflows/vitest.yml | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/vitest.yml diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 4aec01b..79093b9 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -1,4 +1,4 @@ -name: Playwright Tests +name: Playwright End-to-End Tests on: push: branches: [main] @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - name: Install dependencies run: npm ci - name: Install Playwright Browsers diff --git a/.github/workflows/vitest.yml b/.github/workflows/vitest.yml new file mode 100644 index 0000000..659d972 --- /dev/null +++ b/.github/workflows/vitest.yml @@ -0,0 +1,19 @@ +name: Vitest Unit Tests +on: + push: + branches: [main] + pull_request: + branches: [main] +jobs: + test: + timeout-minutes: 2 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + - name: Install dependencies + run: npm ci + - name: Run unit tests + run: npm run test:unit From e76c1652a4c91daca75b4e5348dc0ec55c8488e6 Mon Sep 17 00:00:00 2001 From: Micah Engle-Eshleman Date: Sat, 12 Oct 2024 23:19:39 -0700 Subject: [PATCH 2/2] Bump Typescript 5.1 -> 5.5 --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 06ba948..7a25989 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "react-hook-form": "^7.47.0", "rimraf": "^5.0.1", "ts-node": "^10.9.1", - "typescript": "^5.1.6", + "typescript": "5.5", "vite": "^4.4.9", "vitest": "^0.34.6", "zod": "^3.22.4" @@ -4216,9 +4216,9 @@ } }, "node_modules/typescript": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz", - "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/package.json b/package.json index 37455a5..72f1a4b 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "react-hook-form": "^7.47.0", "rimraf": "^5.0.1", "ts-node": "^10.9.1", - "typescript": "^5.1.6", + "typescript": "5.5", "vite": "^4.4.9", "vitest": "^0.34.6", "zod": "^3.22.4"