Skip to content

Commit

Permalink
Updated the cypress ci to run the firebase emulator and a local vue s…
Browse files Browse the repository at this point in the history
…erver
  • Loading branch information
toastking committed May 25, 2020
1 parent 6f613e7 commit 320679e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/tests.js.yml
Expand Up @@ -31,13 +31,20 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 11
- name: Install dependencies
run: npm ci
- run: node -v
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: emulators:start
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v1
with:
start: npm run serve
start: npm run ci:serve
wait-on: http://localhost:8081/
browser: chrome
headless: true
3 changes: 2 additions & 1 deletion README.md
@@ -1,6 +1,7 @@
# Zooted

![Unit Tests](https://github.com/toastking/virtual-cards/workflows/Node%20test/badge.svg)
![Tests](https://github.com/toastking/virtual-cards/workflows/Tests/badge.svg?branch=master)

Zooted is a way to play card games like kings virtually.

## Project setup
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -8,6 +8,7 @@
"deploy": "npm run build && firebase deploy",
"test:unit": "vue-cli-service test:unit",
"test:e2e": "firebase emulators:exec --only firestore \"vue-cli-service test:e2e\"",
"ci:serve": "vue-cli-service serve",
"test:all": "npm run test:unit && npm run test:e2e",
"lint": "vue-cli-service lint",
"test:debug": "node --inspect-brk node_modules/.bin/vue-cli-service test:unit --no-cache --watch --runInBand"
Expand Down

0 comments on commit 320679e

Please sign in to comment.