Skip to content

Commit

Permalink
wip6
Browse files Browse the repository at this point in the history
  • Loading branch information
screendriver committed Sep 22, 2023
1 parent 09ad63e commit ab6e2de
Show file tree
Hide file tree
Showing 4 changed files with 212 additions and 11 deletions.
15 changes: 15 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"all": true,
"statements": 97.44,
"branches": 93.33,
"functions": 100,
"lines": 97.44,
"instrument": true,
"check-coverage": true,
"extension": [".js"],
"src": "target/build/source",
"reporter": ["lcov", "text-summary", "cobertura"],
"reportDir": "./target/coverage",
"tempDirectory": "./target/c8_output",
"exclude": ["target/build/source/**/*.test.js", "target/build/source/bin/**/*"]
}
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
name: CI
name: Continuous integration

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18]
name: Node ${{ matrix.node }}
name: Node v20
steps:
- uses: actions/checkout@master
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
node-version: 20
- name: Install dependencies
run: npm ci
run: npm clean-install
- name: Run tests
run: npm test
timeout-minutes: 20
Expand All @@ -26,6 +23,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./target/coverage/lcov.info
parallel: true

coverage:
needs: build
runs-on: ubuntu-latest
Expand Down
185 changes: 184 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
"version": "4.0.0",
"type": "module",
"description": "Changelog generator based on GitHub Pull Requests",
"bin": "dist/bin/pr-log.js",
"bin": "target/build/source/bin/pr-log.js",
"files": [
"dist/",
"target/build/source/",
"!target/build/source/**/*.test.js",
"!target/build/source/**/*.d.ts",
"!target/build/source/**/*.map",
"LICENSE",
"README.md"
],
Expand All @@ -15,7 +18,8 @@
"eslint": "eslint --ext '.js,.ts' .",
"lint": "npm run eslint && npm run prettier -- --check",
"lint:fix": "npm run eslint -- --fix && npm run prettier -- --write",
"test": "nyc npm run test:unit",
"test": "c8 npm run test:unit",
"pretest:unit": "npm run compile",
"test:unit": "ava"
},
"author": "Mathias Schreck <[email protected]>",
Expand All @@ -40,6 +44,7 @@
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"ava": "5.3.1",
"c8": "^8.0.1",
"eslint": "8.49.0",
"eslint-config-joyn": "2.5.0",
"eslint-plugin-array-func": "4.0.0",
Expand Down

0 comments on commit ab6e2de

Please sign in to comment.