Skip to content

fix: Augmentation de la durée de validitée du token de réinitialisati… #235

fix: Augmentation de la durée de validitée du token de réinitialisati…

fix: Augmentation de la durée de validitée du token de réinitialisati… #235

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