Skip to content

Commit

Permalink
update github actions setup to run server via docker compose
Browse files Browse the repository at this point in the history
to match local development setup
  • Loading branch information
petrjasek committed Oct 7, 2024
1 parent ffd3ce2 commit 20a3957
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/ci-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,29 @@ jobs:
RUN_SERVICES: true
E2E: true
TZ: Australia/Sydney
CYPRESS_SCREENSHOTS_FOLDER: /tmp/cypress
defaults:
run:
working-directory: ./e2e
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'server/requirements.txt'
- name: Setup Environment
run: ./scripts/ci-install.sh
- name: Build server
run: docker compose build
- name: Start services
run: |
docker compose pull
docker compose up -d
- name: Build Client
working-directory: ./e2e
run: npm run build
- name: Start Services
run: ./scripts/ci-start-services.sh
- name: E2E Suite A
if: matrix.e2e == 'a'
working-directory: ./e2e
run: npm run cypress-ci -- --spec "cypress/e2e/events/*.cy.ts"
env:
CYPRESS_SCREENSHOTS_FOLDER: /tmp/cypress
- name: E2E Suite B
if: matrix.e2e == 'b'
working-directory: ./e2e
run: npm run cypress-ci -- --spec "cypress/e2e/!(events)/*.cy.ts|cypress/e2e/workqueue.cy.ts"
env:
CYPRESS_SCREENSHOTS_FOLDER: /tmp/cypress
- name: Upload screenshots
if: ${{ failure() }}
uses: actions/upload-artifact@v2
Expand Down
4 changes: 2 additions & 2 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"cypress-real-events": "^1.7.6",
"cypress-terminal-report": "^5.0.2",
"extract-text-webpack-plugin": "3.0.2",
"lodash": "^4.17.15",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"moment-timezone": "^0.5.42"
"moment-timezone": "^0.5.46"
},
"scripts": {
"cypress-ui": "cypress open",
Expand Down

0 comments on commit 20a3957

Please sign in to comment.