Skip to content

Merge pull request #12 from xf2809/ci_cd_added #20

Merge pull request #12 from xf2809/ci_cd_added

Merge pull request #12 from xf2809/ci_cd_added #20

Workflow file for this run

name: Jest Testing
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
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 .