fix linnt #38
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
name: Jest Testing | |
on: push | |
jobs: | |
jest: | |
name: "Jest testing" | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
working-directory: ./backend | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: Install Dependencies | |
run: npm install | |
- name: "start testing" | |
run: npm run test | |
env: | |
DOTENV_KEY: ${{ secrets.DOTENV_KEY }} | |
- name: Jest code coverage results | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: code-coverage-report | |
path: /backend/coverage | |
js-lint: | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
working-directory: ./backend | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: Install Dependencies | |
run: npm install | |
- name: Run Eslint | |
run: npm run eslint | |
yaml-lint: | |
name: YAML Lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install yamllint | |
run: pip install yamllint | |
- name: Run yamllint | |
run: yamllint . |