Skip to content

Commit

Permalink
ci: Added UI tests (#126)
Browse files Browse the repository at this point in the history
* ci: Added UI tests

* fix import type assertion
  • Loading branch information
gallayl authored Sep 13, 2024
1 parent 9484fa1 commit 931d11c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: UI tests for Showcase app
on: [push]
jobs:
build:
name: Build and run UI tests
timeout-minutes: 15
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x, 22.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install
- name: Build app
run: yarn build
- name: Install Playwright browsers
run: yarn playwright install --with-deps
- name: Seed test data
run: yarn seed
- name: Execute tests
run: yarn test:e2e
- uses: actions/upload-artifact@v4
if: failure()
with:
path: e2e
name: ScreenShots
2 changes: 1 addition & 1 deletion service/src/service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { BoilerplateApi } from 'common'
import BoilerplateApiSchemas from 'common/schemas/boilerplate-api.json' assert { type: 'json' }
import BoilerplateApiSchemas from 'common/schemas/boilerplate-api.json' with { type: 'json' }

import {
DefaultSession,
Expand Down

0 comments on commit 931d11c

Please sign in to comment.