From 61c96acc7a1f98a022cf685c7d6d70b7756e8186 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 4 May 2021 10:16:59 +0000 Subject: [PATCH 1/5] Run tests on CI --- .github/workflows/node.js.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 00000000..e31b4883 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,28 @@ +# This workflow will do a clean install of node dependencies, 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 + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm install --dev + - run: npm test From 64cca3b874fc42d20c9afc057121cb92d9360b23 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 4 May 2021 10:20:19 +0000 Subject: [PATCH 2/5] Update name and npn install args --- .github/workflows/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index e31b4883..b0db3c7a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,9 +20,9 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Run unit tests uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - - run: npm install --dev + - run: npm install --also=dev - run: npm test From 4525daee83b05c3510ce869ce92477ffc589b364 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 4 May 2021 10:21:46 +0000 Subject: [PATCH 3/5] try to adjust label again --- .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 b0db3c7a..f0a3f123 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,7 +1,7 @@ # This workflow will do a clean install of node dependencies, 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: Run unit tests on: push: From d804a93df306a1a9acab6caaa6324424089cf60f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 4 May 2021 10:22:37 +0000 Subject: [PATCH 4/5] last label adjustment --- .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 f0a3f123..b52381f7 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,7 +1,7 @@ # This workflow will do a clean install of node dependencies, 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: Run unit tests +name: Unit tests on: push: From 08bafad206582dc89f99fc82f864ade4cfdb9e3d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 4 May 2021 10:23:17 +0000 Subject: [PATCH 5/5] Rename node.js.yml to unittests.js.yml --- .github/workflows/{node.js.yml => unittests.js.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{node.js.yml => unittests.js.yml} (100%) diff --git a/.github/workflows/node.js.yml b/.github/workflows/unittests.js.yml similarity index 100% rename from .github/workflows/node.js.yml rename to .github/workflows/unittests.js.yml