Skip to content

Commit

Permalink
Add cypress in docker action
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <[email protected]>
  • Loading branch information
raimund-schluessler committed Aug 26, 2020
1 parent a427863 commit a46be18
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/cypress-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Cypress in Docker

on:
pull_request:
push:
branches:
- master
- stable*

env:
APP_NAME: nextcloud-vue

jobs:
jest:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# run x copies of the current job in parallel
containers: [1, 2]
node-version: ['12.x']

name: Runner ${{ matrix.containers }}

steps:
- uses: actions/checkout@v2

- name: Set up node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Cypress run
run: docker-compose run visual sh -c "npx cypress run"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"stylelint:fix": "stylelint src/**/*.vue src/**/*.scss src/**/*.css --fix",
"styleguide": "vue-styleguidist server",
"styleguide:build": "vue-styleguidist build",
"cypress": "docker-compose run visual sh -c \"npm run cypress\"",
"cypress": "docker-compose run visual sh -c \"npx cypress run\"",
"cypress:gui": "cypress open",
"cypress:update-snapshots": "docker-compose run visual sh -c \"cypress run --env type=base --config screenshotsFolder=cypress/snapshots/base\""
"cypress:update-snapshots": "docker-compose run visual sh -c \"npx cypress run --env type=base --config screenshotsFolder=cypress/snapshots/base\""
},
"main": "dist/ncvuecomponents.js",
"files": [
Expand Down

0 comments on commit a46be18

Please sign in to comment.