From 4f39c402d0d40c466b269256b2603e9e153f5c01 Mon Sep 17 00:00:00 2001 From: Aman Sahu <92854825+AmanKrSahu@users.noreply.github.com> Date: Wed, 13 Nov 2024 13:01:32 +0530 Subject: [PATCH] Added Continuous Integration (CI) Workflow (#1) --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6b46fbe --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: Continuous Integration + +on: + pull_request: + branches: [ "main" ] + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, macOS-latest] + + runs-on: ${{matrix.os}} + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js 18.x + uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test --if-present