forked from nasa-gibs/worldview
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating test cases for SOTO compatibility (#35)
* - Added Soto git action workflow - Added Soto npm e2e execution - Updated test cases for SOTO compatibility * - Added parameter for assertDefaultLayers * Lint fixing * Lint fixing * Lint fix * Lint fix * disabled some tests for SOTO * updated CI-CD for windows * Lint Fix * Updated changelog * Update package-lock.json * lint --------- Co-authored-by: Zoltan Miskolci <zoltan.miskolci@jpl.nasa.gov> Co-authored-by: Frank Greguska <89428916+frankinspace@users.noreply.github.com>
- Loading branch information
1 parent
bc6cacb
commit e618e18
Showing
26 changed files
with
7,375 additions
and
16,019 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,55 @@ | ||
|
||
name: CI SOTO | ||
|
||
on: [push] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ${{matrix.os}} | ||
name: ${{matrix.os}}, Node ${{matrix.node}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macOS-latest, ubuntu-latest, windows-latest] | ||
node: [18] | ||
|
||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{matrix.node}} | ||
|
||
- name: Install NPM Dependencies | ||
run: | | ||
npm ci | ||
- name: Linting and Unit testing | ||
run: | | ||
npm test | ||
- name: Build the application | ||
run: | | ||
npm run build:ci | ||
- name: Run E2E tests - Chrome / MacOS | ||
if: ${{ runner.os == 'macOS' }} | ||
run: | | ||
npm run start & | ||
npx playwright install chromium & | ||
sleep 10 | ||
SOTO=true npx playwright test --project=chromium --reporter=list | ||
- name: Run E2E tests - Firefox / Windows | ||
if: ${{ runner.os == 'Windows' }} | ||
run: | | ||
npm run start & | ||
npx playwright install firefox & | ||
sleep 10 | ||
set SOTO=true | ||
npx playwright test --project=firefox --reporter=list | ||
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
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,11 @@ | ||
#!/bin/bash | ||
|
||
# This script should be run inside the docker container to execute | ||
# the headless end-to-end tests | ||
|
||
npm cache verify | ||
npm install --unsafe-perm | ||
npm run build | ||
npm start & | ||
npx playwright install | ||
SOTO=true npx playwright test |
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
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
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
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
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
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
Oops, something went wrong.