mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-07-04 19:21:58 +00:00
Implement initial Cypress testing configuration (#115)
* Implement initial Cypress testing configuration * Add docs on cypress for testing * Cypress cache for GitHub actions
This commit is contained in:
committed by
GitHub
parent
a6aee3802c
commit
76857c0a4b
@@ -21,10 +21,21 @@ jobs:
|
||||
path: node_modules
|
||||
key: node-modules-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
- name: Cache cypress binary
|
||||
id: cypress-cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: /home/runner/.cache/Cypress
|
||||
key: cypress-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
- name: Install node_modules
|
||||
if: steps.node-cache.outputs.cache-hit != 'true'
|
||||
run: npm install
|
||||
|
||||
- name: Install cypress
|
||||
if: steps.cypress-cache.outputs.cache-hit != 'true'
|
||||
run: npx cypress install
|
||||
|
||||
- name: Run checks
|
||||
run: |
|
||||
npm run format
|
||||
|
||||
Reference in New Issue
Block a user