From 57d6b790abf6648664430aeae477fed78edc8126 Mon Sep 17 00:00:00 2001 From: EsquivelJC <68873192+EsquivelJC@users.noreply.github.com> Date: Thu, 24 Mar 2022 12:41:35 -0600 Subject: [PATCH 1/3] Updated Version --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index bb6d53b..22ba8a9 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x, 16.x] + node-version: [12.x, 14.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: From c858a1c27e86aa13003b3fdff4b8eeb5ebd7a687 Mon Sep 17 00:00:00 2001 From: EsquivelJC <68873192+EsquivelJC@users.noreply.github.com> Date: Thu, 24 Mar 2022 12:44:01 -0600 Subject: [PATCH 2/3] Update .github/workflows/node.js.yml Co-authored-by: github-learning-lab[bot] <37936606+github-learning-lab[bot]@users.noreply.github.com> --- .github/workflows/node.js.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 22ba8a9..0dfd8d3 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -16,6 +16,7 @@ jobs: strategy: matrix: + os: [ubuntu-latest, windows-2016] node-version: [12.x, 14.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ From f013f5bfcceb9603b26682fe62d3847a52ccab18 Mon Sep 17 00:00:00 2001 From: EsquivelJC <68873192+EsquivelJC@users.noreply.github.com> Date: Thu, 24 Mar 2022 12:46:05 -0600 Subject: [PATCH 3/3] Update node.js.yml --- .github/workflows/node.js.yml | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 0dfd8d3..ff968dc 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,32 +1,40 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: Node.js CI +name: Node CI -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] +on: [push] jobs: build: runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: npm install and build webpack + run: | + npm install + npm run build + + test: + + runs-on: ubuntu-latest + strategy: matrix: os: [ubuntu-latest, windows-2016] node-version: [12.x, 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@v2 + uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm test + - name: npm install, and test + run: | + npm install + npm test + env: + CI: true