Files
my-node-app/.github/workflows/build.yml
T
John 75d64c9111
Node CI-CD Test / build (push) Failing after 20s
Test Node CI-CD runner
2026-09-22 19:26:50 +05:30

45 lines
739 B
YAML

name: Node CI-CD Test
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