Skip to content

Added more tests, refactored the code and added the CI script #8

Added more tests, refactored the code and added the CI script

Added more tests, refactored the code and added the CI script #8

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: app/gilded-rose.ts
- name: Set up environment
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: |
apt install npm
npm install
- name: Run the tests
run: npm run test:jest