feat: Tri par académie de la relation, puis par nombre de voeux decro… #239
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: CI | |
on: [ push ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: 'server' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Enable corepack | |
run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
cache: 'yarn' | |
cache-dependency-path: '**/yarn.lock' | |
# setup .yarnrc.yml | |
- name: Create .yarnrc.yml | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
yarn config set yarnPath .yarn/releases/yarn-3.3.1.cjs | |
yarn config set nodeLinker node-modules | |
yarn config set defaultSemverRangePrefix "" | |
# Install dependencies | |
- name: Run Yarn Install | |
run: | | |
yarn install --immutable | |
# Lint | |
- name: Run Lint | |
run: | | |
yarn lint | |
# Run tests | |
- name: Run Tests | |
run: | | |
yarn test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: ./.coverage | |
name: codecov-server | |
verbose: true |