Skip to content

Commit

Permalink
CI: add playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stscoundrel committed Apr 8, 2024
1 parent 2ea63bd commit 3aa2536
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 16 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test-integration-cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Cypress - Integration Test

on: [pull_request]

jobs:
cypress-run:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [20.x]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
node-version: ${{ matrix.node-version }}
- name: Test with Headless
uses: cypress-io/github-action@v6
with:
browser: chrome
headless: true
build: yarn build
start: yarn start
command: yarn test:integration
41 changes: 25 additions & 16 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
name: TypeScript - Integration Test
name: Playwright - Integration Test

on: [pull_request]

jobs:
cypress-run:
build:

runs-on: ubuntu-latest

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [20.x]
fail-fast: false

steps:
- name: Checkout
uses: actions/checkout@v4
with:
node-version: ${{ matrix.node-version }}
- name: Test with Headless
uses: cypress-io/github-action@v6
with:
browser: chrome
headless: true
build: yarn build
start: yarn start
command: yarn test:integration
- uses: actions/checkout@v4
- name: Install Gradle
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Install & build with Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- name: Build app
run: yarn build
- name: Start app
run: yarn start &
- name: Wait for app to Start
run: sleep 5
- run: cd tests/integration/oldswedishdictionarye2e && ./gradlew test -i
env:
CI: true

0 comments on commit 3aa2536

Please sign in to comment.