Skip to content

fix(courses): switch courses with no id to a previous edition, if available #742

fix(courses): switch courses with no id to a previous edition, if available

fix(courses): switch courses with no id to a previous edition, if available #742

Workflow file for this run

name: Checks
on:
push:
branches:
- main
- develop
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
checks:
runs-on: ubuntu-latest
strategy:
matrix:
check: [lint, format, types]
name: "Code linting: ${{ matrix.check }}"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache node modules
uses: actions/cache@v4
with:
path: ./node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('./package-lock.json') }}
- name: Setup .npmrc
run: printf '@polito:registry=https://npm.pkg.github.com\n//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}\n' > .npmrc
- name: Install npm dependencies
run: npm install
- name: Run check
run: npm run ${{ matrix.check }}:check