-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1900 from MoveOnOrg/stage-main-10-a
Stage-main 10-pre
- Loading branch information
Showing
184 changed files
with
8,198 additions
and
4,855 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Integration Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
services: | ||
redis: | ||
image: redis | ||
ports: | ||
- 6379:6379 | ||
postgres: | ||
image: postgres:10 | ||
env: | ||
POSTGRES_USER: spoke_test | ||
POSTGRES_PASSWORD: spoke_test | ||
POSTGRES_DB: spoke_test | ||
ports: | ||
- 5432:5432 | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cypress run | ||
uses: cypress-io/github-action@v2 | ||
env: | ||
NODE_ENV: test | ||
PORT: 3001 | ||
OUTPUT_DIR: ./build | ||
ASSETS_DIR: ./build/client/assets | ||
ASSETS_MAP_FILE: assets.json | ||
DB_TYPE: pg | ||
DB_NAME: spoke_test | ||
DB_USER: spoke_test | ||
DB_PASSWORD: spoke_test | ||
SESSION_SECRET: secret | ||
DEFAULT_SERVICE: fakeservice | ||
JOBS_SAME_PROCESS: 1 | ||
PASSPORT_STRATEGY: local | ||
PHONE_INVENTORY: 1 | ||
with: | ||
browser: chrome | ||
build: npm run prod-build | ||
start: npm start | ||
wait-on: 'http://localhost:3001' | ||
- uses: actions/upload-artifact@v1 | ||
if: failure() | ||
with: | ||
name: cypress-screenshots | ||
path: cypress/screenshots | ||
- uses: actions/upload-artifact@v1 | ||
if: failure() | ||
with: | ||
name: cypress-videos | ||
path: cypress/videos |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.