Create node.js.yml

This commit is contained in:
JurTI-BR
2025-03-11 17:35:38 -03:00
committed by GitHub
parent 709bb86e1b
commit ec8e66a1c6

32
.github/workflows/node.js.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Node.js CI
on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main", "dev" ]
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build application
run: npm run build --if-present