Skip to content

Commit

Permalink
Testing cypress tests in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-R-Haugland committed May 24, 2024
1 parent f9ec82b commit 7b401e4
Showing 1 changed file with 29 additions and 15 deletions.
44 changes: 29 additions & 15 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,20 @@ jobs:
# key: modules-${{ hashFiles('package-lock.json') }}
#
# - run: npm run test
cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
# Install npm dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v6
env:
CYPRESS_TESTS: true
with:
build: npm run build
start: npm start

build:
needs: [ install ]
Expand All @@ -61,15 +75,15 @@ jobs:
- path: /beta/fintlabs-no
environment: beta
org: fintlabs-no
- path: /bfk-no
environment: api
org: bfk-no
- path: /afk-no
environment: api
org: afk-no
- path: /ofk-no
environment: api
org: ofk-no
# - path: /bfk-no
# environment: api
# org: bfk-no
# - path: /afk-no
# environment: api
# org: afk-no
# - path: /ofk-no
# environment: api
# org: ofk-no
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -128,12 +142,12 @@ jobs:
include:
- org: fintlabs-no
cluster: aks-beta-fint-2021-11-23
- org: bfk-no
cluster: aks-api-fint-2022-02-08
- org: afk-no
cluster: aks-api-fint-2022-02-08
- org: ofk-no
cluster: aks-api-fint-2022-02-08
# - org: bfk-no
# cluster: aks-api-fint-2022-02-08
# - org: afk-no
# cluster: aks-api-fint-2022-02-08
# - org: ofk-no
# cluster: aks-api-fint-2022-02-08

steps:
- name: Checkout repository
Expand Down

0 comments on commit 7b401e4

Please sign in to comment.