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
59 changes: 2 additions & 57 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
# env:
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

test-integration-chrome:
test-integration:
name: Run Integration Chrome Tests
runs-on: ubuntu-latest

Expand Down Expand Up @@ -131,63 +131,8 @@ jobs:
- name: Run Tests
run: yarn test:cy:ci:chrome

test-integration-firefox:
name: Run Integration Firefox Tests
runs-on: ubuntu-latest

steps:
# Checkout the repo
- name: Checkout
uses: actions/checkout@v1

# Setup Node.js build environment
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14.18.1

# Cache dependencies
- name: Cache Dependencies
uses: actions/cache@v2
id: cache
with:
path: |
**/node_modules
key: yarn-${{ hashFiles('**/package.json', 'yarn.lock') }}

# Install project dependencies
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn

- uses: bahmutov/npm-install@v1
env:
CYPRESS_INSTALL_BINARY: 0
# confirm there is no Cypress installed
- run: yarn cypress cache path
# should return empty list of installed versions
- run: yarn cypress cache list
# restore / cache the binary ourselves on Linux
# see https://github.com/actions/cache
- name: Cache Cypress
id: cache-cypress
uses: actions/cache@v2
with:
path: ~/.cache/Cypress
key: cypress-cache-v2-${{ runner.os }}-${{ hashFiles('**/package.json') }}
# now let's install Cypress binary
- run: yarn cypress install
- run: yarn cypress cache list

- name: Build
run: yarn build

# Run Cypress
- name: Run Tests
run: yarn test:cy:ci:firefox

automerge:
needs: [test-unit, test-integration-chrome, test-integration-firefox]
needs: [test-unit, test-integration]
runs-on: ubuntu-latest
permissions:
pull-requests: write
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"clean": "rimraf dist",
"cy:open": "./node_modules/.bin/cypress open",
"cy:run:chrome": "cypress run --browser chrome",
"cy:run:firefox": "cypress run --browser firefox",
"dev": "yarn watch",
"docs": "node_modules/.bin/jsdoc -c .jsdoc.js --verbose",
"esdoc": "esdoc",
Expand All @@ -39,9 +38,8 @@
"start-test-server": "http-server -p 9002",
"test": "yarn lint:js && yarn test:ci",
"pretest:ci": "yarn build",
"test:ci": "yarn test:unit:ci && yarn test:cy:ci:chrome && yarn test:cy:ci:firefox",
"test:ci": "yarn test:unit:ci && yarn test:cy:ci:chrome",
"test:cy:ci:chrome": "start-server-and-test start-test-server http://localhost:9002 cy:run:chrome",
"test:cy:ci:firefox": "start-server-and-test start-test-server http://localhost:9002 cy:run:firefox",
"test:cy:watch": "start-server-and-test start-test-server http://localhost:9002 cy:open",
"test:unit:ci": "jest --coverage",
"test:unit:watch": "jest --watch",
Expand Down