From 8fb026ea16828d75a40435e9402e40596eff21cb Mon Sep 17 00:00:00 2001 From: Leah Date: Thu, 17 Oct 2019 23:17:59 +0200 Subject: [PATCH 1/7] add actions --- .github/workflows/nodejs.yml | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..3dff04df --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,47 @@ +name: Node CI + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm test + +# Could add this for canary versions +# publish-gpr: +# needs: build +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v1 +# - uses: actions/setup-node@v1 +# with: +# node-version: 12 +# registry-url: https://npm.pkg.github.com/ +# scope: '@preact' +# - run: | +# npm install +# npm config set registry https://npm.pkg.github.com/ +# npm publish +# env: +# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} From d75b03e4f6cf0b9dcb0c10650e08a024c37fda29 Mon Sep 17 00:00:00 2001 From: Leah Date: Mon, 6 Jan 2020 04:02:49 +0100 Subject: [PATCH 2/7] (github-actions) fix testing --- .github/workflows/nodejs.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 3dff04df..be79ad42 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -25,7 +25,6 @@ jobs: - name: npm install, build, and test run: | npm install - npm run build --if-present npm test # Could add this for canary versions From a25f85e5aa99209287a8f94db9ff5eca111daeb2 Mon Sep 17 00:00:00 2001 From: Leah Date: Mon, 6 Jan 2020 04:16:46 +0100 Subject: [PATCH 3/7] (github-actions) change branch triggers and add more node versions --- .github/workflows/nodejs.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index be79ad42..1bae9bb6 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,12 +1,11 @@ name: Node CI on: - pull_request: - branches: - - master + pull_request: {} push: - branches: - - master + branches-ignore: + - trying.tmp + - staging.tmp jobs: build: @@ -14,7 +13,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x] + node-version: [8.x, 10.x, 12.x, 13.x] steps: - uses: actions/checkout@v1 From c630419acbe32793efa93f1e2a23d47e45252f6f Mon Sep 17 00:00:00 2001 From: Leah Date: Wed, 8 Jan 2020 05:44:00 +0100 Subject: [PATCH 4/7] (github-actions) remove 8.x because it's EOL, try to add sizereport --- .github/workflows/nodejs.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 1bae9bb6..fcd7b81a 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node-version: [8.x, 10.x, 12.x, 13.x] + node-version: [10.x, 12.x, 13.x] steps: - uses: actions/checkout@v1 @@ -25,6 +25,8 @@ jobs: run: | npm install npm test + - name: sizereport + run: sizereport --config # Could add this for canary versions # publish-gpr: From 5bb83523fd789619ca9003eacca1bf7015e05cf1 Mon Sep 17 00:00:00 2001 From: Leah Date: Wed, 8 Jan 2020 06:03:39 +0100 Subject: [PATCH 5/7] point sizereport at node_modules bin directory --- .github/workflows/nodejs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index fcd7b81a..1be6b73d 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -26,7 +26,7 @@ jobs: npm install npm test - name: sizereport - run: sizereport --config + run: ./node_modules/.bin/sizereport --config # Could add this for canary versions # publish-gpr: From e115b2e3a815fa515f25fd2ea059902477edf38c Mon Sep 17 00:00:00 2001 From: Leah Date: Wed, 8 Jan 2020 06:06:34 +0100 Subject: [PATCH 6/7] remove travis.yml --- .travis.yml | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c5b4fae9..00000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: node_js -node_js: - - 'node' - - 'lts/*' -branches: - except: - - trying.tmp - - staging.tmp -after_success: sizereport --config From b0f1ebf905045e0e322e5209591cf25e779c7e8f Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Sat, 18 Apr 2020 21:49:19 -0400 Subject: [PATCH 7/7] drop node 10 --- .github/workflows/nodejs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 1be6b73d..778e25f6 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 13.x] + node-version: [12.x, 13.x] steps: - uses: actions/checkout@v1