23 Commits

Author SHA1 Message Date
Nate Fischer
26e4ff006c chore: update codecov to v5 2026-01-01 15:51:23 -08:00
Nate Fischer
964fb48e9e test: check for README changes in the unit tests
No change to logic. This checks for stale README in the unit tests
instead of by calling 'gendocs' directly.

The main goal is for GitHub CI to stop getting tripped up by
package-lock.json formatting changes. `npm install` sometimes overwrites
the package-lock file with a new format, and this breaks the
after-travis step.

Test: node_modules/.bin/ava test/docs.js
2025-11-18 22:25:05 -08:00
Nate Fischer
75d26de5b3 fix: cmd is compatible with node 22.10
Starting in node >= 22.10.0, a commandNotFound error will have
`undefined` values for stdout/stderr, whereas in earlier versions these
values were `null`.

Fixes #1180
2025-04-10 01:26:54 -07:00
Nate Fischer
c94a3979d0 chore: remove unused env var
No change to logic. This env variable isn't relevant since we dropped
support for older node versions.
2025-03-08 18:02:12 -08:00
Nate Fischer
7e71b2686d chore: drop support for old node versions
Dropping support for everything before node v18, which is the current
maintenance LTS and also the version in Ubuntu 24.04 LTS.

This also updates all devDependencies while trying to minimize the
required source code changes. Some devDependencies can go higher still
(ava, chalk), but this is going to require extensive refactoring.

Test: npm run test-with-coverage
Test: npm run lint
Test: npm run check-node-support
2025-02-17 22:31:10 -08:00
Nate Fischer
9e51217484 chore: switch to testing LTS releases only
No change to official support. We will still accept patches for non-LTS
versions when it's reasonable to support them, especially for the most
recent Node release (whether that is odd-numbered or even-numbered).
This just lightens up the workload on CI because most of our users are
probably running node LTS.
2025-02-16 11:04:39 -08:00
Nate Fischer
81ed1226d2 chore: pin node v22.9.0
There's a bug when running on node v22.10. This temporarily pins 22 to
22.9.0 to workaround the problem and keep tests passing on CI.

Mitigation for issue #1180.
2025-02-16 10:20:37 -08:00
Nate Fischer
9429aae203 chore: switch to codecov v4
No change to logic. This updates codecov/codecov-action to v4. This
version supposedly has better support for external contributors working
from repository forks.

Tested this out with PR #1168.
2024-06-22 17:39:36 -07:00
Nate Fischer
3529d5095f chore: remove unsupported node configs from CI
No change to logic. GitHub Actions recently dropped some NodeJS configurations from their service. This excludes those configs from our CI.

This also adds Node versions up through v22.

Test: npm run check-node-support
2024-06-01 12:19:27 -07:00
Nate Fischer
ec3e12bf37 chore: try codecov token again
I tried this recently in 1a1a820569f0883a317944973c15cf34431dd6c2 and
then reverted in b8b1c4224d0ec7d631d26c78922c018dd5b895f5. Unfortunately
I'm still seeing spurious failures from codecov, so let's try the token
one more time.

This time I double checked the token is provided by
https://app.codecov.io/gh/shelljs/shelljs/settings. I regenerated the
token for good measure.
2024-02-17 17:39:33 -08:00
Andreas Deininger
b5e53ebd12
Bump GitHub workflow actions to latest versions (#1136)
This PR bumps two GitHub workflow actions to their latest versions.
2023-11-12 21:05:27 -08:00
Nate Fischer
b8b1c4224d chore: remove codecov token
It looks like 1a1a820569f0883a317944973c15cf34431dd6c2 actually broke
codecov. Codecov is currently trying to diff all PRs against the commit
before that one, which leads to flagging previously-added lines of code
as needing coverage in the current PR.

Let's try removing the token and see if codecov is happy again.

Fixes #1124
2023-11-11 17:42:46 -08:00
Nate Fischer
b704489221 chore: keep node < 16 around longer
GitHub is removing all versions < v16 from GitHub actions. I'm trying to
keep Node coverage for as long as possible.

Issue #1140
2023-11-11 17:13:11 -08:00
Nate Fischer
a987ecfab2 chore: update nyc to v15
No change to logic. This updates nyc (code coverage tool) to version 15,
which works around a breaking change that snuck into the latest Node LTS
versions.

Unfortunately, this version of nyc appears to break Node 8 and 9. We
need to work around this problem by skipping test coverage on those
versions.

Fixes #1130
2023-11-11 16:50:13 -08:00
Nate Fischer
e7ce4df63f docs: fix typo in security policy
No change to content. This fixes a missing ')' character.
2023-09-07 01:23:24 -07:00
Nate Fischer
547a739d61 chore: update CI to test against node v20
No change to logic. This updates GitHub actions CI to test on node v19
and v20.
2023-07-07 15:41:31 -07:00
Nate Fischer
1a1a820569 chore: add codecov token
This is supposed to fix codecov.

Fixes #1124
2023-07-05 18:29:23 -07:00
Nate Fischer
a3a7e7496d chore: update CI to include v18
No change to logic. This updates GitHub actions to test up through node
v18.
2022-08-09 21:49:21 -07:00
Nate Fischer
b4daff5fd2
chore: add SECURITY.md (#1061)
No change to code. This adds a security policy.

Issue #1058
2022-01-06 22:39:44 -08:00
Nate Fischer
d0a45166fd
chore: set up GitHub Actions CI (#1055) 2021-11-29 23:34:38 -08:00
Brandon Freitag
e9461dc5a7 Add note to issue template about FAQ (#794)
* Add note to issue template about FAQ

* Use more general language in FAQ comment
2017-10-23 17:27:13 -07:00
Nate Fischer
32db059a01 chore: update issue template (#502) 2016-08-05 15:57:57 -07:00
Nate Fischer
0c85cc198c docs(CONTRIBUTING): add CONTRIBUTING.md with contributing guidelines and issue template 2016-04-14 07:54:03 -07:00