Skip to content

Commit

Permalink
chore(#439): fix frontend tests (#444)
Browse files Browse the repository at this point in the history
* chore(#439): update frontend tests

* chore(#439): fix eslint

* chore(#439): fix cypress tests
  • Loading branch information
Decipher authored Sep 5, 2022
1 parent 020e5fb commit 90e4ecc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
node: [16]

steps:
- name: Checkout πŸ›Ž
Expand All @@ -43,20 +43,21 @@ jobs:
${{ runner.os }}-node-
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: npm ci --prefer-offline --no-audit --legacy-peer-deps
run: cd nuxt && yarn install

- name: Run linter πŸ‘€
run: npm run lint
run: cd nuxt && yarn lint

- name: Run tests πŸ§ͺ
run: npm run test
# @TODO - Update to use a local (CI) backend instead of production.
run: cd nuxt && BASE_URL=https://demo-api.druxtjs.org yarn test

- uses: actions/upload-artifact@v3
with:
name: cypress-videos
path: cypress/videos
path: nuxt/cypress/videos
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
path: nuxt/cypress/screenshots
File renamed without changes.
4 changes: 2 additions & 2 deletions nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"cy:run": "cypress run",
"dev": "nuxt",
"generate": "nuxt generate",
"lint:js": "eslint --ext .js,.vue --ignore-path .gitignore .",
"lint:style": "stylelint **/*.{vue,css} --ignore-path .gitignore",
"lint:js": "eslint --ext .js,.vue --ignore-path ../.gitignore .",
"lint:style": "stylelint **/*.{vue,css} --ignore-path ../.gitignore",
"lint": "npm run lint:js && npm run lint:style",
"lintfix": "prettier --write --list-different . && npm run lint:js -- --fix && npm run lint:style -- --fix",
"serve": "npm run generate && npm start",
Expand Down

0 comments on commit 90e4ecc

Please sign in to comment.