Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"src": ["src/lib"],
"include": ["dist/src/lib/**/*.js"],
"exclude": ["dist/src/lib/index.js"],
"extension": [".js"],
"reporter": ["lcovonly", "text"],
"all": true
}
21 changes: 19 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
build:
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
strategy:
matrix:
Expand All @@ -29,10 +30,26 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
- run: npm run build
- run: node ./dist/src/cli.js --help
- run: npm run coverage
- run: node ./dist/src/cli.js --help
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v6
if: ${{ !cancelled() && matrix.node-version == 'latest' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
report_type: coverage
files: ./coverage/lcov.info
disable_search: true
- name: Upload test results to Codecov
uses: codecov/codecov-action@v6
if: ${{ !cancelled() && matrix.node-version == 'latest' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
report_type: test_results
files: ./test-results.xml
disable_search: true
- name: Publish test report
uses: mikepenz/action-junit-report@v6
if: ${{ (success() || failure()) && matrix.node-version == 'latest' }}
with:
report_paths: ./test-results.xml
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
.vscode
.idea
node_modules/
dist/
mise.toml
/*.tgz
/.nyc_output
/test-results.xml
/coverage
*.local.*
6 changes: 2 additions & 4 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"require": ["tsx"],
"extension": ["ts"],
"reporter": "spec",
"spec": ["test/**/*.ts"]
"extension": ["js", "ts"],
"reporter": "spec"
}
5 changes: 0 additions & 5 deletions codecov.yml

This file was deleted.

4 changes: 2 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import globals from 'globals'
import { defineConfig } from 'eslint/config'
import { defineConfig, globalIgnores } from 'eslint/config'
import eslintConfigPrettier from 'eslint-config-prettier/flat'

export default defineConfig([
globalIgnores(['dist/**/*.{js,ts}']),
{
files: ['src/**/*.ts', 'test/**/*.ts'],
extends: [
Expand All @@ -17,7 +18,6 @@ export default defineConfig([
reportUnusedDisableDirectives: 'error',
},
languageOptions: {
ecmaVersion: 2020,
globals: globals.node,
parserOptions: {
project: ['./tsconfig.json'],
Expand Down
Loading
Loading