Skip to content

Commit

Permalink
feat changed to manual cypress running
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHorwitz committed Aug 11, 2024
1 parent 2cf5178 commit 126a0e3
Showing 1 changed file with 33 additions and 8 deletions.
41 changes: 33 additions & 8 deletions .github/workflows/cypress-test-basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,42 @@ jobs:
container:
image: cypress/included
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Cypress run
uses: cypress-io/github-action@v2
- uses: actions/setup-node@v4
with:
wait-on: 'http://capstone-dre.dns.net.za'
wait-on-timeout: 300
working-directory: frontend
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
node-version: 20
- name: Cache Node modules
uses: actions/cache@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
path: |
frontend/node_modules
~/.cache/yarn
key: yarn-${{ hashFiles('frontend/package.json') }}
restore-keys: |
yarn-${{ hashFiles('frontend/package.json') }}
yarn-
- name: Run install
uses: borales/actions-yarn@v5
with:
cmd: install
dir: 'frontend'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # if needed

- run: yarn install --frozen-lockfile

# - name: Cypress run
# uses: cypress-io/github-action@v2
# with:
# working-directory: frontend
- run: yarn cypress run
# - name: Upload coverage reports to Codecov
# uses: codecov/[email protected]
# with:
# token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 126a0e3

Please sign in to comment.