Skip to content

Commit

Permalink
Merge pull request #42 from euberdeveloper/c8
Browse files Browse the repository at this point in the history
Use c8
  • Loading branch information
euberdeveloper authored Jun 12, 2024
2 parents c6a2d6c + 73c9804 commit 9ba0898
Show file tree
Hide file tree
Showing 6 changed files with 165 additions and 766 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use pnpm ${{ matrix.pnpm-version }}
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: ${{ matrix.pnpm-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: main

Expand All @@ -20,7 +20,7 @@ jobs:
config: './docs/tree/dree.config.json'

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "docs: inject dree (automated commit)"
branch: main
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use pnpm ${{ matrix.pnpm-version }}
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: ${{ matrix.pnpm-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -29,20 +29,20 @@ jobs:
run: pnpm run transpile

- name: Run tests and generate coverage report
run: pnpm run nyc
run: pnpm run test:cover

- name: Send coverage report to Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Send coverage report to Codecov
uses: Atrox/codecov-action@v0.1.3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Send coverage report to Code Climate
uses: paambaati/codeclimate-action@v2.7.5
uses: paambaati/codeclimate-action@v8
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"script:getr:mac": "node scripts/generate-expected-tests-results mac",
"script:getr:windows": "node scripts/generate-expected-tests-results windows",
"test": "mocha --reporter spec test/test.js",
"nyc": "nyc --extension=ts --reporter=html --reporter=text --reporter=lcov pnpm test",
"cover:coveralls": "nyc report --extension=ts --reporter=text-lcov | coveralls",
"cover:codecov": "nyc report --extension=ts --reporter=text-lcov > coverage.lcov && codecov",
"test:cover": "c8 --reporter=html --reporter=text --reporter=lcov pnpm test",
"cover:coveralls": "c8 report --reporter=text-lcov | coveralls",
"cover:codecov": "c8 report --reporter=text-lcov > coverage.lcov && codecov",
"cover": "pnpm cover:coveralls && pnpm cover:codecov",
"docs:html": "typedoc",
"docs:html-dev": "typedoc --options typedoc.dev.js",
Expand Down Expand Up @@ -85,6 +85,7 @@
"@release-it/conventional-changelog": "^8.0.1",
"@types/node": "^20.14.2",
"@types/yargs": "^17.0.32",
"c8": "^10.1.1",
"chai": "^5.1.1",
"chai-as-promised": "^8.0.0",
"codecov": "^3.8.3",
Expand All @@ -94,7 +95,6 @@
"esbuild": "^0.21.5",
"esbuild-plugin-import-map": "^2.1.0",
"mocha": "^10.4.0",
"nyc": "^17.0.0",
"release-it": "^17.3.0",
"shx": "^0.3.4",
"typedoc": "^0.25.13",
Expand Down
Loading

0 comments on commit 9ba0898

Please sign in to comment.