Skip to content

updated workflows

updated workflows #5

Workflow file for this run

# Common Tests:Linting, Unit test, Build test
# 1. Linting Test (ESLint + Prettier)
# 2. TypeScript Type-Checking (if using TypeScript)
# 3. Unit Tests (with a framework like Jest or Vitest)
# 4. Integration Tests (if applicable)
# 5. Build Test (ensure the project builds without errors)
# 6. Deployment Test (automated deployment upon successful tests)
name: Node.js CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18]
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
- run: npm run test
- run: npm run build