This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
Bump @types/jest from 27.5.2 to 29.5.5 #2469
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
name: End-to-end tests | |
on: [push] | |
jobs: | |
cypress-e2e-headless: | |
name: Cypress e2e | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ["14"] | |
browser: ["firefox", "chrome"] | |
services: | |
registry: | |
image: registry:2 | |
ports: | |
- 5000:5000 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
with: | |
driver-opts: network=host | |
- name: Clone backend | |
uses: actions/checkout@v3 | |
with: | |
repository: 'CSCfi/beacon-network' | |
ref: 'dev' | |
path: beacon-network | |
- name: Build Backend | |
uses: docker/build-push-action@v4 | |
with: | |
context: ./beacon-network | |
push: true | |
file: ./beacon-network/Dockerfile | |
tags: localhost:5000/beacon-network:latest | |
cache-from: localhost:5000/beacon-network:latest | |
cache-to: type=local,dest=/tmp/.buildx-cache | |
- name: Clone beacon 2 | |
uses: actions/checkout@v3 | |
with: | |
repository: 'CSCfi/beacon-2.x' | |
ref: 'test' | |
path: beacon2 | |
- name: Download beacon 2 data | |
uses: carlosperate/download-file-action@v2.0.1 | |
id: download-data | |
with: | |
file-url: 'https://drive.google.com/uc?export=download&id=1PLv5F54a5pqR_ts5fL68jtmmkuJjDxMA' | |
file-name: 'data.sql.gz' | |
location: './beacon2/deploy/db' | |
- name: Run beacon 2 | |
run: | | |
cd beacon2/deploy | |
docker network create beacon-network_apps | |
docker-compose up -d db | |
sleep 80 | |
docker-compose up -d | |
sleep 30 | |
- name: Set up beacon-network | |
run: | | |
cd beacon-network | |
docker-compose -f docker-compose-test.yml up -d | |
sleep 30 | |
./tests/test_files/add_fixtures.sh | |
- name: Build Frontend | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
build-args: | | |
"VUE_APP_AGGREGATOR_URL=http://localhost:5054/" | |
"VUE_APP_REGISTRY_URL=http://localhost:8083/" | |
"VUE_APP_DEVELOPMENT=true" | |
push: true | |
file: ./Dockerfile | |
tags: localhost:5000/beacon-network-ui:latest | |
cache-from: localhost:5000/beacon-network-ui:latest | |
cache-to: type=local,dest=/tmp/.buildx-cache | |
- name: Run Frontend | |
run: | | |
docker-compose -f docker-compose-test.yml up -d | |
sleep 30 | |
- name: Run tests | |
uses: cypress-io/github-action@v5 | |
with: | |
browser: ${{ matrix.browser }} | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots | |
retention-days: 5 | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-videos | |
path: cypress/videos | |
retention-days: 5 |