fixed calling of wrong function [setTime called, needed setTimeout #6
This file contains hidden or 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: CI Pipeline # name of pipeline | |
| on: # on which event to run the pipeline | |
| push: # on push event | |
| branches: # which branches | |
| [ main ] # when push is made to main branch, trigger pipeline | |
| jobs: # jobs to be run in the pipeline | |
| build: # job name | |
| runs-on: ubuntu-latest # environment to run the job | |
| steps: | |
| - name: Checkout code # step name | |
| uses: actions/checkout@v2 # action to checkout code, actions are reusable components in GitHub workflows | |
| - name: Set up Node.js # step name | |
| uses: actions/setup-node@v2 # action to setup Node.js | |
| with: | |
| node-version: '16' # specify Node.js version | |
| - name: Install dependencies # step name | |
| run: npm install # command to install dependencies | |
| - name: Run tests # step name | |
| run: npm test # command to run tests |