From f2aa37ddda049a8ba7d2f6d2e366111d75fb9dd4 Mon Sep 17 00:00:00 2001 From: bjornvolcker <65532189+bjornvolcker@users.noreply.github.com> Date: Tue, 15 Jun 2021 09:15:33 +0200 Subject: [PATCH 1/7] Improve CI --- .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 0a9660f..b70dfb9 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x, 15.x] + node-version: [12.x, 14.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: From 51d093b43528223aa0778e47ad9fe1b3abf526a8 Mon Sep 17 00:00:00 2001 From: bjornvolcker <65532189+bjornvolcker@users.noreply.github.com> Date: Tue, 15 Jun 2021 09:19:54 +0200 Subject: [PATCH 2/7] Update node.js.yml --- .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 b70dfb9..5afd483 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 db10c76beccab41e11a9e3a65f2708f5504222b4 Mon Sep 17 00:00:00 2001 From: bjornvolcker <65532189+bjornvolcker@users.noreply.github.com> Date: Tue, 15 Jun 2021 09:46:05 +0200 Subject: [PATCH 3/7] Update node.js.yml --- .github/workflows/node.js.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 5afd483..c69a360 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -11,21 +11,37 @@ on: 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 }} + - name: npm install, and test + run: | + npm install + npm test + + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - run: npm ci - run: npm run build --if-present - run: npm test + env: + CI: true From a56296b1b6ff7fe0952fb2f8852ee570c7645574 Mon Sep 17 00:00:00 2001 From: bjornvolcker <65532189+bjornvolcker@users.noreply.github.com> Date: Tue, 15 Jun 2021 09:48:33 +0200 Subject: [PATCH 4/7] Update node.js.yml --- .github/workflows/node.js.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index c69a360..d67e211 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -36,12 +36,5 @@ jobs: run: | npm install npm test - - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run build --if-present - - run: npm test env: CI: true From f14c17d21fd586210ff1179ed1b6d20fcb1aea49 Mon Sep 17 00:00:00 2001 From: bjornvolcker <65532189+bjornvolcker@users.noreply.github.com> Date: Tue, 15 Jun 2021 09:56:12 +0200 Subject: [PATCH 5/7] Update node.js.yml --- .github/workflows/node.js.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index d67e211..de47648 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -13,11 +13,15 @@ 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/checkout@v2 + - name: npm install and build webpack + run: | + npm install + npm run build + - uses: actions/upload-artifact@main + with: + name: webpack artifacts + path: public/ test: runs-on: ubuntu-latest From d230f8b6ebd90c1839521f38a3a0a9fa5fcb4177 Mon Sep 17 00:00:00 2001 From: bjornvolcker <65532189+bjornvolcker@users.noreply.github.com> Date: Tue, 15 Jun 2021 09:58:51 +0200 Subject: [PATCH 6/7] 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index de47648..a29ed30 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -25,7 +25,10 @@ jobs: test: runs-on: ubuntu-latest - strategy: + - uses: actions/upload-artifact@master + with: + name: webpack artifacts + path: public/ matrix: os: [ubuntu-latest, windows-2016] node-version: [12.x, 14.x] From b8e924a1edb3fa7c2ad95a53207cdf8356c50c27 Mon Sep 17 00:00:00 2001 From: bjornvolcker <65532189+bjornvolcker@users.noreply.github.com> Date: Tue, 15 Jun 2021 10:14:04 +0200 Subject: [PATCH 7/7] Update node.js.yml --- .github/workflows/node.js.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index a29ed30..7bd7b79 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -24,17 +24,19 @@ jobs: path: public/ test: + needs: build runs-on: ubuntu-latest - - uses: actions/upload-artifact@master - with: - name: webpack artifacts - path: public/ + 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 + - uses: actions/download-artifact@main + with: + name: webpack artifacts + path: public - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: