From ec8e66a1c6a0a74445b2f4140cd37f27399b43ef Mon Sep 17 00:00:00 2001 From: JurTI-BR Date: Tue, 11 Mar 2025 17:35:38 -0300 Subject: [PATCH] Create node.js.yml --- .github/workflows/node.js.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..afd82ca --- /dev/null +++ b/.github/workflows/node.js.yml @@ -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