Skip to content

fix: fix jest

fix: fix jest #200

Workflow file for this run

name: Run production pipeline
on:
push:
branches:
- 'main'
jobs:
install_dep:
name: Install dep
runs-on: ubuntu-latest
container:
image: node:20
steps:
- uses: actions/checkout@v4
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Install Dependencies
run: npm ci --ignore-scripts
if: steps.cache-node-modules.outputs.cache-hit != 'true'
eslint:
needs: install_dep
name: ESLint
runs-on: ubuntu-latest
container:
image: node:20
steps:
- uses: actions/checkout@v4
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Lint source code with ESLint
run: npm run lint:check
prettier:
needs: install_dep
name: Prettier
runs-on: ubuntu-latest
container:
image: node:20
steps:
- uses: actions/checkout@v4
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Lint source code with Prettier
run: npm run format:check
unit_testing:
needs: [eslint, prettier]
name: Unit testing
runs-on: ubuntu-latest
container:
image: node:18
steps:
- uses: actions/checkout@v4
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Run tests
run: npm run test
arch_testing:
needs: [eslint, prettier]
name: Architectural testing
runs-on: ubuntu-latest
container:
image: node:20
steps:
- uses: actions/checkout@v4
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Run tests
run: npm run test:arch