From fb03bdb5d4d059f184e1d90e493b76d078469d6e Mon Sep 17 00:00:00 2001 From: DevOps <79638707+AhadShamim@users.noreply.github.com> Date: Thu, 15 May 2025 18:21:55 +0500 Subject: [PATCH] Create node.s.yaml --- .github/workflows/node.s.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/node.s.yaml diff --git a/.github/workflows/node.s.yaml b/.github/workflows/node.s.yaml new file mode 100644 index 0000000..ca1c0be --- /dev/null +++ b/.github/workflows/node.s.yaml @@ -0,0 +1,27 @@ +name: Node.js CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test