fixed the workflow #22
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 | |
- name: Run eslint | |
run: npm run eslint | |
env: | |
DOTENV_KEY: ${{ secrets.DOTENV_KEY }} | |
- name: Jest code coverage results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: code-coverage-report | |
path: ./coverage/Icon-report | |
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' | |
- 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: sudo apt-get install -y yamllint | |
- name: Run yamllint | |
run: yamllint . | |