Files
my-node-app/.github/workflows/build.yml
T
John 4ce386f613
Node.js CI / build (push) Failing after 2s
Update Node.js CI workflow
2026-09-22 17:28:08 +05:30

45 lines
734 B
YAML

name: Node.js CI
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Check Git
shell: powershell
run: |
git --version
- name: Check Node.js
shell: powershell
run: |
node --version
- name: Check npm
shell: powershell
run: |
npm --version
- name: Install dependencies
shell: powershell
run: |
npm ci
- name: Run tests
shell: powershell
run: |
npm test
- name: Build application
shell: powershell
run: |
npm run build