From b85b6c92ccb9722ffca2e7c9f20392567e6c1e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Efeish?= Date: Wed, 12 Aug 2020 01:32:40 -0400 Subject: [PATCH 1/2] Update node.js.yml --- .github/workflows/node.js.yml | 37 +++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index e3bf546..5214a69 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,22 +1,30 @@ -# 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 CI -name: Node.js CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] +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 + - uses: actions/upload-artifact@master + with: + name: webpack artifacts + path: public/ + + test: + + runs-on: ubuntu-latest + strategy: matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, windows-2016] node-version: [12.x, 14.x] steps: @@ -25,6 +33,9 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - 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 From 88671d59b43c840a8f764edefffd288d8abe2e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Efeish?= Date: Wed, 12 Aug 2020 01:37:24 -0400 Subject: [PATCH 2/2] Update node.js.yml --- .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 5214a69..bac2b45 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -24,7 +24,7 @@ jobs: strategy: matrix: - os: [ubuntu-latest, windows-2016] + os: [ubuntu-latest] node-version: [12.x, 14.x] steps: