Skip to content

Update deploy.yml

Update deploy.yml #10

Workflow file for this run

name: CI/CD for Developer Community React Project
on:
push:
branches:
- main # Trigger when changes are pushed to the main branch
pull_request:
branches:
- main # Trigger on PRs to the main branch
jobs:
test:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Set up Node.js (React environment)
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
# Step 3: Install dependencies
- name: Install dependencies
run: npm install
# Step 4: Run tests
- name: Run tests
run: npm test -- --ci --silent --coverage