From d6d64c8845019d6479bec5e2349b7b6712ebcfd6 Mon Sep 17 00:00:00 2001 From: VishalCodes <79081827+VishalCodes@users.noreply.github.com> Date: Mon, 29 Mar 2021 09:52:53 +0530 Subject: [PATCH 1/8] Create main.yml --- .github/workflow/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflow/main.yml diff --git a/.github/workflow/main.yml b/.github/workflow/main.yml new file mode 100644 index 00000000..8b87ee8f --- /dev/null +++ b/.github/workflow/main.yml @@ -0,0 +1,21 @@ +name: Scenario 1 + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x] + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test From 2c4e74bb04a23f36717a23fe151580dcb1a1a70b Mon Sep 17 00:00:00 2001 From: VishalCodes <79081827+VishalCodes@users.noreply.github.com> Date: Mon, 29 Mar 2021 09:53:37 +0530 Subject: [PATCH 2/8] Rename .github/workflow/main.yml to .github/workflows/main.yml --- .github/{workflow => workflows}/main.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflow => workflows}/main.yml (100%) diff --git a/.github/workflow/main.yml b/.github/workflows/main.yml similarity index 100% rename from .github/workflow/main.yml rename to .github/workflows/main.yml From e26e077572751d8fb41b5a4e682d849617ea647d Mon Sep 17 00:00:00 2001 From: VishalCodes <79081827+VishalCodes@users.noreply.github.com> Date: Mon, 29 Mar 2021 09:55:22 +0530 Subject: [PATCH 3/8] Create scenario.yml --- .github/workflows/scenario.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/scenario.yml diff --git a/.github/workflows/scenario.yml b/.github/workflows/scenario.yml new file mode 100644 index 00000000..390b6a8f --- /dev/null +++ b/.github/workflows/scenario.yml @@ -0,0 +1,21 @@ +name: GitHub Workspace + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12.x,14.x] + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test From 5e7b70874632d53a7a0cb8ee0a4c2be05615c32e Mon Sep 17 00:00:00 2001 From: meghana3011 <78848094+meghana3011@users.noreply.github.com> Date: Mon, 29 Mar 2021 09:58:13 +0530 Subject: [PATCH 4/8] Create challenge1.yml --- .github/workflows/challenge1.yml | 66 ++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/challenge1.yml diff --git a/.github/workflows/challenge1.yml b/.github/workflows/challenge1.yml new file mode 100644 index 00000000..8d86f41a --- /dev/null +++ b/.github/workflows/challenge1.yml @@ -0,0 +1,66 @@ +name: Node.js CI + + + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + + + +jobs: + build: + + + + runs-on: ubuntu-latest + + + + strategy: + matrix: + node-version: [14.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - uses: actions/upload-artifact@main + with: + name: artifacts + path: | + lib/ + test/ + views/ + package.json + index.js + test: + runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest] + node-version: [14.x] + needs: build + steps: + - uses: actions/checkout@v2 + - uses: actions/download-artifact@main + with: + name: artifacts + path: artifacts + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, and test + run: | + npm install + npm test From 8adb7c65df021d90fe5cde420fcc8c6cdb8c9299 Mon Sep 17 00:00:00 2001 From: VishalCodes <79081827+VishalCodes@users.noreply.github.com> Date: Mon, 29 Mar 2021 10:00:27 +0530 Subject: [PATCH 5/8] Delete scenario.yml --- .github/workflows/scenario.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/workflows/scenario.yml diff --git a/.github/workflows/scenario.yml b/.github/workflows/scenario.yml deleted file mode 100644 index 390b6a8f..00000000 --- a/.github/workflows/scenario.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: GitHub Workspace - -on: [pull_request] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [12.x,14.x] - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run build --if-present - - run: npm test From 3bf99ee7e2433d57fe952957ac03b04a67bf5c92 Mon Sep 17 00:00:00 2001 From: VishalCodes <79081827+VishalCodes@users.noreply.github.com> Date: Mon, 29 Mar 2021 10:00:35 +0530 Subject: [PATCH 6/8] Delete main.yml --- .github/workflows/main.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8b87ee8f..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Scenario 1 - -on: [pull_request] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [14.x] - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run build --if-present - - run: npm test From 9e9c8d5bbd6a31178ccc8ac27ebc907ebaa53733 Mon Sep 17 00:00:00 2001 From: vishalgr Date: Mon, 29 Mar 2021 10:09:25 +0530 Subject: [PATCH 7/8] new commit --- .github/workflows/challenge1.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/challenge1.yml b/.github/workflows/challenge1.yml index 8d86f41a..b18d1db7 100644 --- a/.github/workflows/challenge1.yml +++ b/.github/workflows/challenge1.yml @@ -2,12 +2,7 @@ name: Node.js CI -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - +on: [pull_request] jobs: @@ -21,7 +16,7 @@ jobs: strategy: matrix: - node-version: [14.x] + node-version: [12.x,14.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ From 124da0c25f42c5107709a739d98a31d38cb8ad0e Mon Sep 17 00:00:00 2001 From: VishalCodes <79081827+VishalCodes@users.noreply.github.com> Date: Mon, 29 Mar 2021 10:11:09 +0530 Subject: [PATCH 8/8] Update challenge1.yml --- .github/workflows/challenge1.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/challenge1.yml b/.github/workflows/challenge1.yml index b18d1db7..a1aef967 100644 --- a/.github/workflows/challenge1.yml +++ b/.github/workflows/challenge1.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [12.x,14.x] + node-version: [14.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/