Correction des erreurs de tests et de linting : Conversion de eslint.… #72
This file contains hidden or 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: unit_tests | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: package.json | |
| run: test-jest -f package.json || npm init -y | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@v2.5.2 | |
| - name: Install et tests | |
| run: | | |
| npm install | |
| npm run test-jest |