From ac79664cbec088ae736d8d9d2d862efa0852a545 Mon Sep 17 00:00:00 2001 From: Akshay peherkar <95123298+Akshayp02@users.noreply.github.com> Date: Sun, 15 Oct 2023 10:44:46 +0530 Subject: [PATCH 1/8] Build-Test workflow added --- .github/workflows/build-test.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) 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..e69de29 From 0034d0715b68c2d9c0b70321238f070d1ac9cdf4 Mon Sep 17 00:00:00 2001 From: Akshay peherkar <95123298+Akshayp02@users.noreply.github.com> Date: Sun, 15 Oct 2023 10:56:58 +0530 Subject: [PATCH 2/8] test build workflow --- .github/workflows/build-test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index e69de29..6a4b4ba 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -0,0 +1,32 @@ +name: CI +on: workflow_dispatch + +jobs: + Continuous-Integration: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set Up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install Dependencies + run: npm install + + - name: Build + run: npm run build + - name: Move Artifacts + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + run: | + git config --global user.name 'vaishnavi-3969' + git config --global user.email 'vaishnavi.kale3011@gmail.com' + git checkout --orphan gh-pages + git rm -rf . + mv -f build/* . + git add . + git commit -m 'GitHub Actions: Deploy to gh-pages' + git push -f origin gh-pages From 470bf7827483f347e05e9806e5943b576b7266e9 Mon Sep 17 00:00:00 2001 From: Akshay peherkar <95123298+Akshayp02@users.noreply.github.com> Date: Sun, 15 Oct 2023 11:43:04 +0530 Subject: [PATCH 3/8] Update build-test.yml Signed-off-by: Akshay peherkar <95123298+Akshayp02@users.noreply.github.com> --- .github/workflows/build-test.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 6a4b4ba..40cbb7a 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -1,4 +1,4 @@ -name: CI +name: Build-test on: workflow_dispatch jobs: @@ -11,7 +11,7 @@ jobs: - name: Set Up Node.js uses: actions/setup-node@v2 with: - node-version: '14' + node-version: 16 - name: Install Dependencies run: npm install @@ -19,14 +19,9 @@ jobs: - name: Build run: npm run build - name: Move Artifacts - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | - git config --global user.name 'vaishnavi-3969' - git config --global user.email 'vaishnavi.kale3011@gmail.com' - git checkout --orphan gh-pages - git rm -rf . + mv -f build/* . git add . - git commit -m 'GitHub Actions: Deploy to gh-pages' - git push -f origin gh-pages + git commit -m 'GitHub Actions: Deploy' + git push -f origin From 6f20350abfbd51532faf2d0c1dc4ae88e18bbc68 Mon Sep 17 00:00:00 2001 From: Akshay peherkar <95123298+Akshayp02@users.noreply.github.com> Date: Sun, 15 Oct 2023 11:53:19 +0530 Subject: [PATCH 4/8] build-test --- .github/workflows/build-test.yml | 64 ++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 6a4b4ba..da60b4b 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -1,32 +1,40 @@ -name: CI -on: workflow_dispatch +name: Build and Test + +on: [push] jobs: - Continuous-Integration: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set Up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install Dependencies + run: npm ci + + - name: Build + run: npm run build + + test: runs-on: ubuntu-latest + steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - - name: Set Up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Install Dependencies - run: npm install - - - name: Build - run: npm run build - - name: Move Artifacts - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} - run: | - git config --global user.name 'vaishnavi-3969' - git config --global user.email 'vaishnavi.kale3011@gmail.com' - git checkout --orphan gh-pages - git rm -rf . - mv -f build/* . - git add . - git commit -m 'GitHub Actions: Deploy to gh-pages' - git push -f origin gh-pages + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set Up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install Dependencies + run: npm ci + + - name: Run Tests + run: npm test From 81a3cdee48fa31e1ec4daf5e2ac035a258cf9605 Mon Sep 17 00:00:00 2001 From: Akshay peherkar <95123298+Akshayp02@users.noreply.github.com> Date: Wed, 18 Oct 2023 07:05:04 +0530 Subject: [PATCH 5/8] Build and test workflow --- .github/workflows/build-test.yml | 57 ++++++++++++++------------------ 1 file changed, 25 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index da60b4b..e7e9c9d 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -1,40 +1,33 @@ -name: Build and Test +name: Build and Test -on: [push] -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - - name: Set Up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' +on: - - name: Install Dependencies - run: npm ci + push: + branches: [ master ] + pull_request: + branches: [ master ] - - name: Build - run: npm run build - test: +jobs: + build_test: + runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - - name: Set Up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' + strategy: + matrix: + node-version: [14.x, 15.x] - - name: Install Dependencies - run: npm ci - - - name: Run Tests - run: npm test + + 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 \ No newline at end of file From fa198277ee5f4377c017c867f7703187466ce2b8 Mon Sep 17 00:00:00 2001 From: Akshay peherkar <95123298+Akshayp02@users.noreply.github.com> Date: Wed, 18 Oct 2023 07:16:51 +0530 Subject: [PATCH 6/8] Build and test workflow added --- .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..3d2322c --- /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 \ No newline at end of file From e21cef2a1e475afa70913a9f49a41ad3529f56e0 Mon Sep 17 00:00:00 2001 From: Akshay peherkar <95123298+Akshayp02@users.noreply.github.com> Date: Mon, 23 Oct 2023 14:39:52 +0530 Subject: [PATCH 7/8] Workflow updated --- .github/workflows/build_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 3d2322c..5b8e5fd 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -28,6 +28,6 @@ jobs: node-version: ${{ matrix.node-version }} - name: npm ci, build and test run: | - npm ci + npm install npm run build --if-present npm test \ No newline at end of file From 37b542aec02f7065d48102fa2da66a97bbf2dc37 Mon Sep 17 00:00:00 2001 From: Akshay peherkar <95123298+Akshayp02@users.noreply.github.com> Date: Mon, 23 Oct 2023 14:44:44 +0530 Subject: [PATCH 8/8] Update build_test.yml Signed-off-by: Akshay peherkar <95123298+Akshayp02@users.noreply.github.com> --- .github/workflows/build_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 5b8e5fd..b088a8a 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [14.x, 15.x, 16.x] + node-version: [14.x, 15.x,] steps: @@ -30,4 +30,4 @@ jobs: run: | npm install npm run build --if-present - npm test \ No newline at end of file + npm test