Skip to content

Commit

Permalink
update GH Actions config file for client p3
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Quintanilla committed Nov 10, 2024
1 parent 46e4168 commit a1fdf61
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/client-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,32 @@ name: Client CI
on:
push:
branches: [main, develop]
paths:
- "client/**"
pull_request:
branches: [main, develop]
paths:
- "client/**"

jobs:
build:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: client/

steps:
- uses: actions/checkout@v4
- name: Install Dependencies
#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
- name: Run Tests
working-directory: client/

#4 Run client tests
- name: Run Client Test Suite
run: npm test
- name: Build
run: npm run build
working-directory: client/

0 comments on commit a1fdf61

Please sign in to comment.