Skip to content

fix: added back jest test #54

fix: added back jest test

fix: added back jest test #54

Workflow file for this run

name: Tests CI
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x] # You can specify multiple Node.js versions to test against
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install Yarn
run: corepack enable && corepack prepare yarn@stable --activate
- name: Install dependencies
run: yarn install
- name: Build the project
run: yarn run build
- name: Run tests
run: yarn run test
- name: Upload Test Results
uses: actions/upload-artifact@v2
if: failure()
with:
name: test-results
path: ./tests/reports/
if-no-files-found: error