Skip to content

Commit

Permalink
#106 - Cypress tests in CI (#118)
Browse files Browse the repository at this point in the history
* #106 - update Cypress

* #106 - little tests refactor

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI

* #106 - add Cypress to CI
  • Loading branch information
EwelinaSkrzypacz authored Oct 19, 2021
1 parent b965767 commit e812757
Show file tree
Hide file tree
Showing 12 changed files with 2,446 additions and 94 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
check:
runs-on: ubuntu-20.04
container:
image: cypress/browsers:node14.17.0-chrome88-ff89

steps:
- uses: actions/checkout@v2
Expand All @@ -27,8 +29,22 @@ jobs:
- name: Install dependencies
run: npm install

- name: Add env values
run: |
echo 'CONTACT_FORM_URL="${{ secrets.CONTACT_FORM_URL }}"' > .env
echo 'CONTACT_FORM_EMAIL_NAME="${{ secrets.CONTACT_FORM_EMAIL_NAME }}"' >> .env
echo 'CONTACT_FORM_QUESTION_NAME="${{ secrets.CONTACT_FORM_QUESTION_NAME }}"' >> .env
echo 'MAPBOX_STYLE="${{ secrets.MAPBOX_STYLE }}"' >> .env
echo 'MAPBOX_TOKEN="${{ secrets.MAPBOX_TOKEN }}"' >> .env
- name: Test application
run: npm run test

- name: Lint codebase
run: npm run lint

- name: Cypress run
uses: cypress-io/github-action@v2
with:
start: npm run dev
wait-on: http://localhost:5000
3 changes: 2 additions & 1 deletion cypress.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"integrationFolder": "test/cypress/integration",
"video": false,
"screenshotOnRunFailure": false
"screenshotOnRunFailure": false,
"baseUrl": "http://localhost:5000"
}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:

cypress:
container_name: blumilk-cypress
image: "cypress/included:8.5.0"
image: "cypress/included:8.6.0"
depends_on:
- node
environment:
Expand Down
Loading

0 comments on commit e812757

Please sign in to comment.