Skip to content
Permalink
Browse files

Add CircleCI configuration

  • Loading branch information
christiandavid committed Dec 15, 2019
1 parent 7d5a345 commit 69cc89cc2df339859dbb9dbe13a8078b206a91a9
Showing with 43 additions and 3 deletions.
  1. +40 −0 .circleci/config.yml
  2. +1 −1 www/cypress/integration/home.test.js
  3. +2 −2 www/cypress/integration/job.template.test.js
@@ -0,0 +1,40 @@
version: 2
jobs:
test:
working_directory: ~/gatsby-theme-byfolio
docker:
- image: circleci/node:13.3.0
steps:
- checkout
- run:
name: update-yarn
command: "sudo curl --compressed -o- -L https://yarnpkg.com/install.sh | bash"
- run:
name: install-cypress-dependencies
command: "sudo apt-get install xvfb libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2"
- restore_cache:
name: Restore-yarn-package-cache
key: yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run:
name: install-dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: save-yarn-package-cache
key: yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- ~/.cache/Cypress
- ./node_modules
- run:
name: test
command: yarn workspaces run test
- store_artifacts:
path: test-results.xml
prefix: tests
- store_test_results:
path: test-results.xml
workflows:
version: 2
test:
jobs:
- test
@@ -23,7 +23,7 @@ describe("Home page", () => {
cy.get(".hamburger")
.click()
.should("have.class", "is-opened-navi")
cy.wait(1000)
cy.wait(1500)
// Close menu
cy.get(".hamburger")
.click()
@@ -36,7 +36,7 @@ describe("Vlooping experience page", () => {
.contains(title)
cy.get("[data-test=next]").click()
cy.scrollTo(0, 0)
cy.wait(1000)
cy.wait(1500)
})
})

@@ -52,7 +52,7 @@ describe("Vlooping experience page", () => {
.contains(title)
cy.get("[data-test=previous]").click()
cy.scrollTo(0, 0)
cy.wait(1000)
cy.wait(1500)
})
})

0 comments on commit 69cc89c

Please sign in to comment.
You can’t perform that action at this time.