Skip to content

Commit

Permalink
build: move tests over to latest tapjs (#1552)
Browse files Browse the repository at this point in the history
build: move tests over to latest tapjs
build: switch CI/CD to actions
build!: minimum Node version now 18
  • Loading branch information
bcoe authored Apr 10, 2024
1 parent ab7c53b commit 9ef340e
Show file tree
Hide file tree
Showing 31 changed files with 12,256 additions and 297 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
branches:
- master
pull_request:
types: [assigned, opened, synchronize, reopened, labeled]
workflow_dispatch:
name: ci
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [18, 20]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm i npm@latest -g
- run: npm ci --engine-strict
- run: npm test
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- run: npm i npm@latest -g
- run: npm ci
- run: npm test
30 changes: 30 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
branches:
- master
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
if: github.repository == 'istanbuljs/nyc'
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
# The logic below handles the npm publication:
- uses: actions/checkout@v3
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://external-dot-oss-automation.appspot.com'
cache: npm
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ node_modules
test/build/
.self_coverage
self-coverage/
.tap
*.swp
test/fixtures/cli/coverage.json
needs-transpile.js
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "15.1.0"
}
5 changes: 2 additions & 3 deletions .taprc
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"test-ignore": "^test/(helpers|src)/",
"coverage": false,
"exclude": ["^test/(helpers|src|fixtures)/", "**/fixtures/**"],
"disable-coverage": true,
"jobs": 1,
"timeout": 360,
"bail": false,
"esm": false,
"node-arg": [
"--require",
"./self-coverage-helper.js"
Expand Down
31 changes: 0 additions & 31 deletions appveyor.yml

This file was deleted.

Loading

0 comments on commit 9ef340e

Please sign in to comment.