Skip to content

REQUIREMENT: License incompatibilities should raise a warning (closes… #717

REQUIREMENT: License incompatibilities should raise a warning (closes…

REQUIREMENT: License incompatibilities should raise a warning (closes… #717

Workflow file for this run

name: Acceptance tests
on:
- push
jobs:
build:
uses: ./.github/workflows/build.yml
test:
runs-on: ubuntu-latest
steps:
- name: Download sources
uses: actions/checkout@v4
- name: Download tools
run: |
cd backend
docker compose pull
docker pull benel/cucumber-capybara
- name: Install and launch backend with test data
run: |
cd backend
export COUCHDB_USER="TO_BE_CHANGED"
export COUCHDB_PASSWORD="TO_BE_CHANGED"
docker compose up -d
- name: Wait for backend
uses: docker://benel/wait-for-response:1
with:
args: http://localhost:5984/hyperglosae 401 5000 500
- name: Set the backend up
run: |
export COUCHDB_USER="TO_BE_CHANGED"
export COUCHDB_PASSWORD="TO_BE_CHANGED"
./backend/setup.sh
- name: Wait for frontend build
uses: lewagon/[email protected]
with:
check-name: build / build
ref: ${{ github.event.pull_request.head.sha || github.sha }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Get frontend build
uses: actions/download-artifact@v4
with:
name: frontend-build
path: frontend/build
- name: Start frontend
run: |
cd frontend
npm run preprod &
- name: Wait for frontend
uses: docker://benel/wait-for-response:1
with:
args: http://localhost:3000/ 200 30000 500
- name: Run tests
run:
docker run --rm -v "$(pwd)":/app --tty --net="host" --env APP_HOST="http://`hostname`:3000" benel/cucumber-capybara --retry 2 --fail-fast --no-source --no-snippets
shell: 'script -q -e -c "bash {0}"'