Skip to content

Commit

Permalink
add Node v23 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Oct 28, 2024
1 parent e3c4d16 commit baee1e8
Show file tree
Hide file tree
Showing 8 changed files with 750 additions and 4,919 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# See: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

Expand All @@ -11,11 +11,12 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [12, 14, 16, 18, 20, 22]
os: [ubuntu-latest, windows-latest]
node-version: [12, 14, 16, 18, 20, 22, 23]

steps:
- uses: actions/checkout@v4
Expand All @@ -25,5 +26,5 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- name: Run tests
run: npm run test:ci
- run: npm i -g @75lb/nature
- run: npm run test:ci
4 changes: 0 additions & 4 deletions .gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014-24 Lloyd Brookes <75pound@gmail.com>
Copyright (c) 2014-24 Lloyd Brookes <opensource@75lb.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ const optionDefinitions = [
```

Next, parse the options using [commandLineArgs()](https://github.com/75lb/command-line-args/blob/master/doc/API.md#commandlineargsoptiondefinitions-options--object-):

```js
const commandLineArgs = require('command-line-args')
import commandLineArgs from 'command-line-args'
const options = commandLineArgs(optionDefinitions)
```

`options` now looks like this:

```js
{
src: [
Expand Down Expand Up @@ -98,7 +100,8 @@ There is plenty more to learn, please see [the wiki](https://github.com/75lb/com
```sh
$ npm install command-line-args --save
```

* * *

&copy; 2014-24 Lloyd Brookes \<[email protected]\>. Documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown).
&copy; 2014-24 [Lloyd Brookes](https://github.com/75lb) \<[email protected]\>.

Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
Loading

0 comments on commit baee1e8

Please sign in to comment.