diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 53e71ae..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,3 +0,0 @@ -# These are supported funding model platforms - -github: msimerson diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6382271..c86c910 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,11 +10,11 @@ env: jobs: lint: uses: NicTool/.github/.github/workflows/lint.yml@main - - coverage: - uses: NicTool/.github/.github/workflows/coverage.yml@main - secrets: inherit + permissions: + contents: read test: uses: NicTool/.github/.github/workflows/test.yml@main secrets: inherit + permissions: + contents: read diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index 46e21d1..0000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: CodeQL - -on: - push: - branches: [main] - pull_request: - # The branches below must be a subset of the branches above - branches: [main] - schedule: - - cron: '18 7 * * 4' - -jobs: - codeql: - uses: NicTool/.github/.github/workflows/codeql.yml@main diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..3bb2ed5 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,14 @@ +name: Coverage + +on: + pull_request: + types: [opened, synchronize, reopened] + push: + branches: [main] + +jobs: + coverage: + uses: NicTool/.github/.github/workflows/coverage.yml@main + secrets: inherit + permissions: + contents: read diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7a266d6..10e1cfa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,3 +11,7 @@ jobs: publish: uses: NicTool/.github/.github/workflows/publish.yml@main secrets: inherit + permissions: + contents: read + packages: write + id-token: write diff --git a/.release b/.release index 6ad30e5..0512cc8 160000 --- a/.release +++ b/.release @@ -1 +1 @@ -Subproject commit 6ad30e5df5fc026b332bbae7a0a4dfd47baf5898 +Subproject commit 0512cc83f7b2b50ca01b78299b7b2a18ca4f3e66 diff --git a/CHANGELOG.md b/CHANGELOG.md index 78525ba..a319f24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ### Unreleased +### [0.7.5] - 2026-04-20 + +- ci: separate coverage runner, trigger on push to main +- ci: remove codeql config, use default + ### [0.7.4] - 2026-03-28 - dep(mocha): changed test runner from mocha to node:test @@ -94,3 +99,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). [0.5.0]: https://github.com/NicTool/dns-nameserver/releases/tag/v0.5.0 [0.6.0]: https://github.com/NicTool/dns-nameserver/releases/tag/v0.6.0 [0.7.4]: https://github.com/NicTool/dns-nameserver/releases/tag/v0.7.4 +[0.7.5]: https://github.com/NicTool/dns-nameserver/releases/tag/v0.7.5 diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 082b1cf..71841bc 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -2,7 +2,7 @@ This handcrafted artisanal software is brought to you by: -|
msimerson (21) | +|
msimerson (22) | | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | this file is generated by [.release](https://github.com/msimerson/.release). diff --git a/README.md b/README.md index c85542a..643902b 100644 --- a/README.md +++ b/README.md @@ -71,5 +71,10 @@ Does the heavy lifting for `getZones`. Accepts a string and returns an object wh - fix, feature, BREAKING CHANGE, build, chore, ci, docs, style, test - [keep a changelog](https://keepachangelog.com/) -[![Module Tests](https://github.com/NicTool/dns-nameserver/actions/workflows/ci.yml/badge.svg)](https://github.com/NicTool/dns-nameserver/actions/workflows/ci.yml) -[![Coverage Status](https://coveralls.io/repos/github/NicTool/dns-nameserver/badge.svg?branch=master)](https://coveralls.io/github/NicTool/dns-nameserver?branch=master) +[![Tests][test-img]][test-uri] +[![Coverage Status][cov-img]][cov-uri] + +[test-img]: https://github.com/NicTool/dns-nameserver/actions/workflows/ci.yml/badge.svg +[test-uri]: https://github.com/NicTool/dns-nameserver/actions/workflows/ci.yml +[cov-img]: https://coveralls.io/repos/github/NicTool/dns-nameserver/badge.svg +[cov-uri]: https://coveralls.io/github/NicTool/dns-nameserver diff --git a/package.json b/package.json index bab145a..6a373be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nictool/dns-nameserver", - "version": "0.7.4", + "version": "0.7.5", "description": "DNS Nameserver", "main": "index.js", "bin": {}, @@ -14,15 +14,16 @@ "CHANGELOG.md" ], "scripts": { + "format": "npm run prettier:fix && npm run lint:fix", "lint": "npx eslint index.js lib test", "lint:fix": "npx eslint --fix index.js lib test", + "prettier": "npx prettier . --check", + "prettier:fix": "npx prettier . --write --log-level=warn", "test": "node --test", + "test:coverage": "node --test --experimental-test-coverage", + "test:coverage:lcov": "mkdir -p coverage && node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=coverage/lcov.info", "versions": "npx npm-dep-mgr check", - "versions:fix": "npx npm-dep-mgr update", - "test:coverage": "npx c8 --reporter=text --reporter=text-summary npm test", - "format": "npm run prettier:fix && npm run lint:fix", - "prettier": "npx prettier . --check", - "prettier:fix": "npx prettier . --write --log-level=warn" + "versions:fix": "npx npm-dep-mgr update" }, "repository": { "type": "git",