[AA-1798] Fix redirect to job explorer from clusters and savings planner pages #2626
Workflow file for this run
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
# 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 |