From 9dc9321a71f394e2192e1bb2793a29cfc1b39d78 Mon Sep 17 00:00:00 2001 From: Akshay peherkar <95123298+Akshayp02@users.noreply.github.com> Date: Wed, 18 Oct 2023 07:27:00 +0530 Subject: [PATCH] Build Test workflow added Signed-off-by: Akshay peherkar <95123298+Akshayp02@users.noreply.github.com> --- .github/workflows/Build_Test.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/Build_Test.yml diff --git a/.github/workflows/Build_Test.yml b/.github/workflows/Build_Test.yml new file mode 100644 index 0000000..c8474a0 --- /dev/null +++ b/.github/workflows/Build_Test.yml @@ -0,0 +1,33 @@ +name: Build and Test + + +on: + + push: + branches: [ master ] + pull_request: + branches: [ master ] + + +jobs: + build_test: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 15.x, 16.x] + + + steps: + + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: npm ci, build and test + run: | + npm ci + npm run build --if-present + npm test