(test) Add Dictionary Category Service Tests #2150
Workflow file for this run
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: OpenELis Frontend QA framework workflow | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
branches: [develop] | |
workflow_dispatch: | |
env: | |
DOCKER_NAME: ${{ vars.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}-frontend | |
jobs: | |
build-prod-frontend-image: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ env.DOCKER_NAME }} | |
- name: Build Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./frontend | |
file: ./frontend/Dockerfile.prod | |
push: false | |
build-and-run-qa-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout OpenELIS-Global2 | |
uses: actions/checkout@v2 | |
with: | |
repository: ${{github.repository}} | |
submodules: recursive | |
- name: Run OpenELIS image | |
run: docker compose -f build.docker-compose.yml up -d --build --wait --wait-timeout 600 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14.x | |
- name: Install dependencies | |
run: npm install | |
working-directory: frontend | |
- name: Install React scripts | |
run: npm install [email protected] -g | |
working-directory: frontend | |
- name: Run Frontend Qa Workflow | |
run: npx cypress run –headless | |
working-directory: frontend | |
- name: Dump docker logs on failure | |
if: failure() | |
uses: jwalton/gh-docker-logs@v2 | |
with: | |
# Only show last 100 lines of each | |
tail: "100" |