Skip to content
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
7 changes: 4 additions & 3 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ jobs:
- name: Run integration tests
run: npm run test:integ:all

- name: Upload browser test screenshots
- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@v5
with:
name: browser-test-screenshots
path: tests_integ/browser/__screenshots__/
name: test-artifacts-integ
path: ./test/.artifacts/
retention-days: 4
include-hidden-files: true # needed because the path has a directory starting with a '.'
if-no-files-found: ignore
10 changes: 10 additions & 0 deletions .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ jobs:
- name: Run unit tests
run: npm run test:all:coverage

- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@v5
with:
name: test-artifacts-${{ matrix.node-version }}-${{ matrix.os }}
path: ./test/.artifacts/
include-hidden-files: true # needed because the path has a directory starting with a '.'
retention-days: 4
if-no-files-found: ignore

- name: Run linting
run: npm run lint

Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@ Thumbs.db
.env.production.local

# Github workflow artifacts
.artifact
.artifact

# Test artifacts
test/.artifacts
7 changes: 7 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ const getOpenAIAPIKey: BrowserCommand<[], string | undefined> = async ({ testPat
export default defineConfig({
test: {
unstubEnvs: true,
reporters: [
'default',
['junit', { outputFile: 'test/.artifacts/test-report/junit/report.xml' }],
['json', { outputFile: 'test/.artifacts/test-report/json/report.json' }],
],
projects: [
{
test: {
Expand All @@ -43,6 +48,7 @@ export default defineConfig({
browser: {
enabled: true,
provider: playwright(),
screenshotDirectory: 'test/.artifacts/browser-screenshots/',
instances: [
{
browser: 'chromium',
Expand Down Expand Up @@ -72,6 +78,7 @@ export default defineConfig({
browser: {
enabled: true,
provider: playwright(),
screenshotDirectory: 'test/.artifacts/browser-screenshots/',
instances: [
{
browser: 'chromium',
Expand Down
Loading