Merge pull request #14 from Service-Soft/dev #29
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: CI/CD | |
# Controls when the action will run. | |
on: push | |
# workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
test: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
# runs npm i inside the root directory | |
- name: npm i | |
run: | | |
cd $GITHUB_WORKSPACE | |
npm i | |
# runs npm i inside the showcase directory | |
- name: npm i | |
run: | | |
cd $GITHUB_WORKSPACE/showcase | |
npm i | |
# runs test | |
- name: Test | |
run: | | |
cd $GITHUB_WORKSPACE | |
npm run test |