Skip to content

Commit

Permalink
Merge branch 'main' into esm
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Mar 30, 2024
2 parents 96a2ee9 + 4a9a34f commit d68fe21
Show file tree
Hide file tree
Showing 65 changed files with 2,852 additions and 2,036 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ on:

env:
FORCE_COLOR: 2
NODE_COV: 20

permissions:
contents: read

jobs:
run:
permissions:
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code

name: Node ${{ matrix.node }} on ${{ matrix.os }}
Expand Down Expand Up @@ -47,20 +45,9 @@ jobs:
- name: Build
run: npm run build

- name: E2E Tests
run: npm run test:e2e
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV

- name: Unit Tests
run: npm run test:unit
if: (!(startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV))

- name: Tests with coverage
run: npx c8 -- npm run test:unit
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV

- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: E2E Tests
run: npm run test:e2e
if: startsWith(matrix.os, 'ubuntu') && matrix.node == 20
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ build
yarn.lock
.DS_store

/coverage/

# test files
/test/temp_package*.json
/test/.ncurc.json
4 changes: 2 additions & 2 deletions .hooks/post-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
SHORT_SHA=$(git rev-parse HEAD)
LINT_LOG="$TMPDIR"/lint."$SHORT_SHA".log

Expand All @@ -12,7 +12,7 @@ notify() {
# if osascript is not supported, do nothing
if [ -f /usr/bin/osascript ]; then
# read back in the lint errors
ERRORS=$(cat "$LINT_LOG" | sed 1,4d)
ERRORS=$(sed 1,4d "$LINT_LOG")

# Trigger apple- or OSA-script on supported platforms
/usr/bin/osascript -e "display notification \"$ERRORS\" with title \"$*\""
Expand Down
2 changes: 1 addition & 1 deletion .hooks/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
fail=0

npm run lint || fail=1
Expand Down
3 changes: 1 addition & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
build/
coverage/
build/
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![npm version](https://img.shields.io/npm/v/npm-check-updates)](https://www.npmjs.com/package/npm-check-updates)
[![Build Status](https://img.shields.io/github/actions/workflow/status/raineorshine/npm-check-updates/test.yml?branch=main&label=tests&logo=github)](https://github.com/raineorshine/npm-check-updates/actions?query=workflow%3ATests+branch%3Amain)
[![Coverage Status](https://img.shields.io/coveralls/github/raineorshine/npm-check-updates/main)](https://coveralls.io/github/raineorshine/npm-check-updates?branch=main)

**npm-check-updates upgrades your package.json dependencies to the _latest_ versions, ignoring specified versions.**

Expand Down Expand Up @@ -133,9 +132,8 @@ ncu "/^(?!react-).*$/" # windows
- `1.0.0 < 2.0.0``^3.0.0`
- "Any version" is preserved:
- `*``*`
- Prerelease and deprecated versions are ignored by default.
- Prerelease versions are ignored by default.
- Use `--pre` to include prerelease versions (e.g. `alpha`, `beta`, `build1235`)
- Use `--deprecated` to include deprecated versions
- With `--target minor`, only update patch and minor:
- `0.1.0``0.2.1`
- With `--target patch`, only update patch:
Expand Down Expand Up @@ -200,11 +198,11 @@ Options that take no arguments can be negated by prefixing them with `--no-`, e.
</tr>
<tr>
<td>--dep &lt;value&gt;</td>
<td>Check one or more sections of dependencies only: dev, optional, peer, prod, or packageManager (comma-delimited). (default: ["prod","dev","optional"])</td>
<td>Check one or more sections of dependencies only: dev, optional, peer, prod, or packageManager (comma-delimited). (default: ["prod","dev","optional","packageManager"])</td>
</tr>
<tr>
<td>--deprecated</td>
<td>Include deprecated packages.</td>
<td>Include deprecated packages. Use <code>--no-deprecated</code> to exclude deprecated packages (uses more bandwidth). (default: true)</td>
</tr>
<tr>
<td><a href="#doctor">-d, --doctor</a></td>
Expand Down

0 comments on commit d68fe21

Please sign in to comment.