Skip to content

Update ci.yml

Update ci.yml #37

Workflow file for this run

name: CI Pipeline
on:
push:
branches: ["feature/*","develop","main","hotfix/*","improvement/*"]
pull_request:
branches: ["feature/*","develop","main","hotfix/*","improvement/*"]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: |
cd D:\a\smart-charger-web\smart-charger-web\Software\smart-charger
npm install
npm install --save-dev jest
- name: Run code analysis
run: |
cd D:\a\smart-charger-web\smart-charger-web\Software\smart-charger
npm run lint
- name: Build
run: |
cd D:\a\smart-charger-web\smart-charger-web\Software\smart-charger
npm run build
- name: Test
run: |
cd D:\a\smart-charger-web\smart-charger-web\Software\smart-charger
npm test