Skip to content

Run integration tests and record to cypress dashboard #5

Run integration tests and record to cypress dashboard

Run integration tests and record to cypress dashboard #5

name: Run integration tests and record to cypress dashboard
on:
workflow_dispatch:
env:
MAIN_IMAGE: teamware-main
STATIC_IMAGE: teamware-static
DJANGO_DB_NAME: teamware_integration_db
DJANGO_SETTINGS_MODULE: teamware.settings.docker-integration
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate env
shell: bash
run: |
./generate-docker-env.sh
# Remove container registry address
sed -i 's/ghcr.io\/gatenlp\///g' .env
# Display the environment variable file for the logs
cat .env
- name: Set up Docker cache
uses: satackey/[email protected]
continue-on-error: true
with:
key: integration-test-docker-cache-{hash}
restore-keys: |
integration-test-docker-cache-
- uses: docker-practice/actions-setup-docker@master
- run: |
./build-images.sh
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Run integration tests with cypress
uses: cypress-io/github-action@v4
with:
start: /bin/bash deploy.sh integration
wait-on: 'http://localhost:8076'
config: baseUrl=http://localhost:8076
record: true
env:
CYPRESS_TESTENV: ci
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}