Added more tests, refactored the code and added the CI script #9
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: 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: Install dependencies | |
run: | | |
apt install npm | |
npm install | |
- name: Run the tests | |
run: npm run test:jest |