-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ea63bd
commit 3aa2536
Showing
2 changed files
with
50 additions
and
16 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,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 |
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 |
---|---|---|
@@ -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 |