Skip to content

Commit 9ef340e

Browse files
authored
build: move tests over to latest tapjs (#1552)
build: move tests over to latest tapjs build: switch CI/CD to actions build!: minimum Node version now 18
1 parent ab7c53b commit 9ef340e

31 files changed

+12256
-297
lines changed

.github/workflows/ci.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
types: [assigned, opened, synchronize, reopened, labeled]
7+
workflow_dispatch:
8+
name: ci
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
node: [18, 20]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ matrix.node }}
21+
cache: npm
22+
- run: npm i npm@latest -g
23+
- run: npm ci --engine-strict
24+
- run: npm test
25+
windows:
26+
runs-on: windows-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version: lts/*
32+
cache: npm
33+
- run: npm i npm@latest -g
34+
- run: npm ci
35+
- run: npm test

.github/workflows/release-please.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
name: release-please
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
if: github.repository == 'istanbuljs/nyc'
10+
steps:
11+
- uses: google-github-actions/release-please-action@v4
12+
id: release
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
release-type: node
16+
# The logic below handles the npm publication:
17+
- uses: actions/checkout@v3
18+
# these if statements ensure that a publication only occurs when
19+
# a new release is created:
20+
if: ${{ steps.release.outputs.release_created }}
21+
- uses: actions/setup-node@v3
22+
with:
23+
node-version: 16
24+
registry-url: 'https://external-dot-oss-automation.appspot.com'
25+
cache: npm
26+
if: ${{ steps.release.outputs.release_created }}
27+
- run: npm publish
28+
env:
29+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
30+
if: ${{ steps.release.outputs.release_created }}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ node_modules
44
test/build/
55
.self_coverage
66
self-coverage/
7+
.tap
78
*.swp
9+
test/fixtures/cli/coverage.json
810
needs-transpile.js

.npmrc

-1
This file was deleted.

.release-please-manifest.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "15.1.0"
3+
}

.taprc

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"test-ignore": "^test/(helpers|src)/",
3-
"coverage": false,
2+
"exclude": ["^test/(helpers|src|fixtures)/", "**/fixtures/**"],
3+
"disable-coverage": true,
44
"jobs": 1,
55
"timeout": 360,
66
"bail": false,
7-
"esm": false,
87
"node-arg": [
98
"--require",
109
"./self-coverage-helper.js"

appveyor.yml

-31
This file was deleted.

0 commit comments

Comments
 (0)