update ci.yml for pnpm #1157
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: Install and Test | |
on: | |
push: | |
pull_request: | |
branches: | |
- develop | |
- production | |
jobs: | |
test-client-app: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./client-course-schedulizer | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
cache: 'pnpm' | |
- name: update-npm-version | |
run: | | |
pnpm install -g pnpm@latest | |
- name: Install npm dependencies | |
run: | | |
pnpm start | |
working-directory: ${{env.working-directory}} | |
- name: Run tests | |
run: | | |
pnpm test | |
working-directory: ${{env.working-directory}} |