From be39605a6549ca86502ab15febf571006e6818b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Wed, 21 Apr 2021 17:33:37 +0200 Subject: [PATCH 1/2] chore: add tests for Node 16 --- .github/workflows/versions.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index 2058b0223..649c41290 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -18,7 +18,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [10, 12, 14] + node-version: [10, 12, 14, 16] steps: - uses: actions/checkout@v2 - name: Setup Node @@ -35,7 +35,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [10.15, 12.16.0, 14.2.0] + node-version: [10.15, 12.16.0, 14.2.0, 16] steps: - uses: actions/checkout@v2 - name: Setup Node @@ -52,7 +52,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [10, 11, 12, 14] + node-version: [10, 12, 14, 16] steps: - uses: actions/checkout@v2 - name: Setup Node and check latest @@ -109,4 +109,4 @@ jobs: architecture: 'x86' - name: Verify node run: __tests__/verify-arch.sh "ia32" - shell: bash \ No newline at end of file + shell: bash From 584e5770f9b6960682caa942c6467a6a769928b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Fri, 23 Apr 2021 16:06:34 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ba0da8876..af1413f1c 100644 --- a/README.md +++ b/README.md @@ -19,10 +19,10 @@ steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: 16 ``` -The action will first check the local cache for a semver match. The hosted images have been updated with the latest of each LTS from v8, v10, v12, and v14. `self-hosted` machines will benefit from the cache as well only downloading once. The action will pull LTS versions from [node-versions releases](https://github.com/actions/node-versions/releases) and on miss or failure will fall back to the previous behavior of downloading directly from [node dist](https://nodejs.org/dist/). +The action will first check the local cache for a semver match. The hosted images have been updated with the latest of each LTS from v8, v10, v12, v16, and v16. `self-hosted` machines will benefit from the cache as well only downloading once. The action will pull LTS versions from [node-versions releases](https://github.com/actions/node-versions/releases) and on miss or failure will fall back to the previous behavior of downloading directly from [node dist](https://nodejs.org/dist/). The `node-version` input is optional. If not supplied, the node version that is PATH will be used. However, this action will still register problem matchers and support auth features. So setting up the node environment is still a valid scenario without downloading and caching versions. @@ -36,7 +36,7 @@ steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: 16 - run: npm install - run: npm test ``` @@ -54,7 +54,7 @@ steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: 16 check-latest: true - run: npm install - run: npm test @@ -67,7 +67,7 @@ jobs: runs-on: ubuntu-16.04 strategy: matrix: - node: [ '12', '14' ] + node: [12, 14, 16] name: Node ${{ matrix.node }} sample steps: - uses: actions/checkout@v2 @@ -93,7 +93,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: 16 architecture: 'x64' # optional, x64 or x86. If not specified, x64 will be used by default - run: npm install - run: npm test @@ -115,12 +115,13 @@ jobs: - 10 - 12 - 14 + - 16 architecture: - x64 # an extra windows-x86 run: include: - os: windows-2016 - node_version: 12 + node_version: 16 architecture: x86 name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }} steps: @@ -140,7 +141,7 @@ steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '10.x' + node-version: 16 registry-url: 'https://registry.npmjs.org' - run: npm install - run: npm publish @@ -160,7 +161,7 @@ steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '10.x' + node-version: 16 registry-url: - run: yarn install - run: yarn publish @@ -180,7 +181,7 @@ steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '10.x' + node-version: 16 registry-url: 'https://registry.npmjs.org' # Skip post-install scripts here, as a malicious # script could steal NODE_AUTH_TOKEN.