398ca19ec1
* Allow app to run as a WAR on Keycloak server. * New client creation json that works for both dev and prod * fixed tests * Try Mark's trick to get realm_test to run. * Make tests use keycloakBefore() * Fix duplicate import * fix github actions Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
54 lines
No EOL
1.2 KiB
YAML
54 lines
No EOL
1.2 KiB
YAML
name: Cypress run
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
cypress-run:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- run: npm install -g yarn
|
|
- run: yarn install
|
|
- run: yarn build
|
|
|
|
- name: Run Keycloak
|
|
run: ./start.js & sleep 40
|
|
|
|
- name: Run Admin Console
|
|
run: mkdir ./build/adminv2 && mv ./build/js ./build/adminv2/
|
|
run: npx http-server ./build -P http://localhost:8180/ & sleep 30
|
|
|
|
- name: Admin Console client
|
|
run: ./import.js
|
|
|
|
- name: Cypress run
|
|
run: yarn start:cypress-tests --headless --browser chrome
|
|
|
|
- name: Add Cypress videos artifacts
|
|
uses: actions/upload-artifact@v2
|
|
if: failure()
|
|
with:
|
|
name: cypress-videos
|
|
path: assets/videos
|
|
|
|
- name: Add Cypress screenshots artifacts
|
|
uses: actions/upload-artifact@v2
|
|
if: failure()
|
|
with:
|
|
name: cypress-screenshots
|
|
path: assets/screenshots |