README Updates (#1) #4
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: Client CI | |
on: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
#1 Checkout the code | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
#2 Setup Node.js environment | |
- name: Setup Node.js Environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "npm" | |
cache-dependency-path: client/package-lock.json | |
#3 Install dependencies | |
- name: Install Client Dependencies | |
run: npm ci | |
working-directory: client/ | |
#4 Run client tests | |
- name: Run Client Test Suite | |
run: npm test | |
working-directory: client/ |