Skip to content

Cypress fix eph base url #2623

Cypress fix eph base url

Cypress fix eph base url #2623

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI for PRs
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the devel branch
on:
pull_request:
branches: [ devel ]
jobs:
lint:
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
check-latest: true
# npm 9 causes an issue while using node 18 preventing pr image build to finish
- name: Force npm downgrade to v8
run: npm i -g npm@8
- name: Install modules
run: npm ci
- name: Check the code with linter
run: npm run lint
jest-tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2 # For codecov action it has to be != 1
- uses: actions/setup-node@v3
with:
node-version: '18'
check-latest: true
# npm 9 causes an issue while using node 18 preventing pr image build to finish
- name: Force npm downgrade to v8
run: npm i -g npm@8
- name: Install modules
run: npm ci
- name: Run tests
run: npm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1