Skip to content

Commit

Permalink
ci: auto-populate node LTS versions for CI tests (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jun 3, 2022
1 parent 3bdbd2c commit 67c9101
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Expand Up @@ -15,22 +15,28 @@ jobs:
secrets: inherit

test:
needs: lint
needs: get-lts
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
node-version: [ 14, 16, 18 ]
node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
fail-fast: false

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
with:
node-version: ${{ matrix.node-version }}

- run: npm install

- run: npm test

get-lts:
needs: lint
runs-on: ubuntu-latest
steps:
- id: get
uses: msimerson/node-lts-versions@v1.3.1
outputs:
lts: ${{ steps.get.outputs.lts }}
active: ${{ steps.get.outputs.active }}
2 changes: 1 addition & 1 deletion .release
Submodule .release updated 7 files
+18 −1 CHANGELOG.md
+16 −13 README.md
+0 −91 do.sh
+5 −0 finish.sh
+16 −0 npm/prepend-scope.js
+117 −0 start.sh
+1 −1 submit.sh
7 changes: 7 additions & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,11 @@
### Unreleased


### [1.1.4] - 2022-06-03

- ci: auto-populate node LTS versions for CI tests


### [1.1.3] - 2022-05-29

- chore(ci): updated shared GHA workflow URLs
Expand Down Expand Up @@ -170,5 +175,7 @@
- ci: remove windows support, times out, I think upstream nearley issue


[1.1.1]: https://github.com/NicTool/dns-zone/releases/tag/1.1.1
[1.1.2]: https://github.com/NicTool/dns-zone/releases/tag/1.1.2
[1.1.3]: https://github.com/NicTool/dns-zone/releases/tag/1.1.3
[1.1.4]: https://github.com/NicTool/dns-zone/releases/tag/1.1.4
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@nictool/dns-zone",
"version": "1.1.3",
"version": "1.1.4",
"description": "DNS Zone",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit 67c9101

Please sign in to comment.