Bytt ut gamalt ekspanderbart panel med ExpancionCard #2729
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: Install, build, run Cypress on PR | |
on: pull_request | |
jobs: | |
cypress-run: | |
name: Install, build, run Cypress tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
registry-url: 'https://npm.pkg.github.com' | |
- name: Install dependencies | |
run: npm ci | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} | |
- name: Build application | |
run: npm run build:mock | |
- name: Run tests | |
run: npm run test | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
install: false | |
browser: chrome | |
start: npm start | |
wait-on: http://localhost:3000 | |
wait-on-timeout: 90 | |
record: false | |
- name: Upload screenshots | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots |