Skip to content

Commit

Permalink
alter qa workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
abertnamanya committed Jul 21, 2023
1 parent ae6d1d9 commit 7bd8398
Showing 1 changed file with 6 additions and 31 deletions.
37 changes: 6 additions & 31 deletions .github/workflows/frontend-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,44 +57,19 @@ jobs:
run: npm install [email protected] -g
working-directory: react-ui

- name: Cypress install
uses: cypress-io/github-action@v3
with:
working-directory: react-ui
runTests: false
build: npm run build

- name: Save build folder
uses: actions/upload-artifact@v3
with:
name: build
if-no-files-found: error
working-directory: react-ui/build

- name: Run OpenELS image
run: docker-compose -f build.docker-compose.yml up -d

- name: Sleep for 3 minutes for OpenELIS to start
run: sleep 3m
shell: bash

- name: check containers
run: docker ps

- name: Run Frontend Qa Workflow
run: npx cypress run –headless
working-directory: react-ui

cypress-run:
runs-on: ubuntu-latest
needs: install
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Download the build folder
uses: actions/download-artifact@v3
with:
name: build
working-directory: react-ui/build

- name: Cypress run
uses: cypress-io/github-action@v3
with:
working-directory: react-ui
start: npm start
browser: chrome

0 comments on commit 7bd8398

Please sign in to comment.