This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
forked from research-software-directory/RSD-as-a-service
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #116 from hifis-net/115-update_v1.18.0
Update v1.18.0
- Loading branch information
Showing
78 changed files
with
1,932 additions
and
723 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# SPDX-FileCopyrightText: 2022 - 2023 Dusan Mijatovic (dv4all) | ||
# SPDX-FileCopyrightText: 2022 - 2023 dv4all | ||
# SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all) (dv4all) | ||
# SPDX-FileCopyrightText: 2022 Ewan Cahen (Netherlands eScience Center) <e.cahen@esciencecenter.nl> | ||
# SPDX-FileCopyrightText: 2022 Netherlands eScience Center | ||
# SPDX-FileCopyrightText: 2023 Christian Meeßen (GFZ) <christian.meessen@gfz-potsdam.de> | ||
# SPDX-FileCopyrightText: 2023 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# SPDX-License-Identifier: EUPL-1.2 | ||
|
||
name: e2e tests chrome | ||
on: | ||
workflow_dispatch: | ||
# Disabled automatic tests for HIFIS fork, because the e2e tests sometimes fail randomly | ||
# push: | ||
# branches: | ||
# - main | ||
# paths: | ||
# - "authentication/**" | ||
# - "backend-postgrest/**" | ||
# - "database/**" | ||
# - "e2e/**" | ||
# - "frontend/**" | ||
# - "nginx/**" | ||
# pull_request: | ||
# paths: | ||
# - "authentication/**" | ||
# - "backend-postgrest/**" | ||
# - "database/**" | ||
# - "e2e/**" | ||
# - "frontend/**" | ||
# - "nginx/**" | ||
|
||
jobs: | ||
ubuntu-v22: | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.5 | ||
cache: 'npm' | ||
cache-dependency-path: e2e/package-lock.json | ||
- name: get playwright version | ||
id: playwright-version | ||
working-directory: e2e | ||
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV | ||
- name: cache playwright binaries | ||
uses: actions/cache@v3 | ||
id: playwright-cache | ||
with: | ||
path: | | ||
~/.cache/ms-playwright | ||
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} | ||
- name: install dependencies | ||
working-directory: e2e | ||
run: npm ci | ||
- name: install browsers | ||
working-directory: e2e | ||
run: npx playwright install chromium chrome firefox --with-deps | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' | ||
- name: build rsd | ||
working-directory: . | ||
run: | | ||
cp e2e/.env.e2e .env | ||
docker-compose build --parallel database backend auth frontend nginx | ||
- name: start rsd | ||
working-directory: . | ||
run: | | ||
docker-compose up --detach --scale scrapers=0 | ||
sleep 5 | ||
- name: run e2e tests in chrome | ||
working-directory: e2e | ||
run: npm run e2e:chrome:action | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: e2e/playwright-report/ | ||
retention-days: 30 | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: browser state and .env file | ||
path: | | ||
e2e/state/ | ||
.env | ||
retention-days: 30 | ||
|
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,69 @@ | ||
# SPDX-FileCopyrightText: 2022 - 2023 Dusan Mijatovic (dv4all) | ||
# SPDX-FileCopyrightText: 2022 - 2023 dv4all | ||
# SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all) (dv4all) | ||
# SPDX-FileCopyrightText: 2022 Ewan Cahen (Netherlands eScience Center) <e.cahen@esciencecenter.nl> | ||
# SPDX-FileCopyrightText: 2022 Netherlands eScience Center | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: e2e tests firefox | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ubuntu-v22: | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.5 | ||
cache: 'npm' | ||
cache-dependency-path: e2e/package-lock.json | ||
- name: get playwright version | ||
id: playwright-version | ||
working-directory: e2e | ||
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV | ||
- name: cache playwright binaries | ||
uses: actions/cache@v3 | ||
id: playwright-cache | ||
with: | ||
path: | | ||
~/.cache/ms-playwright | ||
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} | ||
- name: install dependencies | ||
working-directory: e2e | ||
run: npm ci | ||
- name: install browsers | ||
working-directory: e2e | ||
run: npx playwright install chromium chrome firefox --with-deps | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' | ||
- name: build rsd | ||
working-directory: . | ||
run: | | ||
cp e2e/.env.e2e .env | ||
docker-compose build --parallel database backend auth frontend nginx | ||
- name: start rsd | ||
working-directory: . | ||
run: | | ||
docker-compose up --detach --scale scrapers=0 | ||
sleep 5 | ||
- name: run e2e tests in firefox | ||
working-directory: e2e | ||
run: npm run e2e:ff:action | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: e2e/playwright-report/ | ||
retention-days: 30 | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: browser state and .env file | ||
path: | | ||
e2e/state/ | ||
.env | ||
retention-days: 30 | ||
|
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
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
Oops, something went wrong.