Skip to content

Commit

Permalink
Still working on test reporting, cleaning up deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jcputney committed Oct 7, 2024
1 parent d458a22 commit ef5792f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 321 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ jobs:
- name: Run tests with Mocha
run: |
export TS_NODE_COMPILER_OPTIONS="{\"module\":\"commonjs\"}"
./node_modules/.bin/nyc ./node_modules/.bin/mocha --import=tsx --recursive --timeout=10000 --exit --reporter json > results.json
./node_modules/.bin/nyc ./node_modules/.bin/mocha --import=tsx --recursive --timeout=10000 --exit --reporter json --reporter-option output=test-results.json
# Upload test results to Code Climate
- uses: dorny/test-reporter@v1
with:
name: Test Reporter
path: ./results.json
path: test-results.json
reporter: mocha-json

# Run ESLint
Expand All @@ -64,4 +64,11 @@ jobs:
run: |
mkdir coverage
./node_modules/.bin/nyc report --reporter=text-lcov > coverage/lcov.info
./cc-test-reporter after-build -t lcov
./cc-test-reporter after-build -t lcov
- name: Commit and Push Dist Folder
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: actions4git/add-commit-push@v1
with:
commit-message: '[skip ci] Add dist folder'
add-pathspec: 'dist/*'
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@
"@babel/node": "^7.25.7",
"@babel/preset-env": "^7.25.7",
"@babel/preset-typescript": "^7.25.7",
"@babel/register": "^7.25.7",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.12.0",
"@types/eslint__js": "^8.42.3",
"@types/expect": "^24.3.0",
"@types/mocha": "^10.0.8",
"@types/sinon": "^17.0.3",
"@typescript-eslint/eslint-plugin": "^8.8.0",
"babel-eslint": "^11.0.0-beta.2",
"babel-loader": "^9.2.1",
"babelify": "^10.0.0",
Expand All @@ -60,7 +58,6 @@
"tsx": "^4.19.1",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
Expand Down
1 change: 0 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import path from 'path';
import {fileURLToPath} from 'url';
import ESLintPlugin from 'eslint-webpack-plugin';
import UglifyJsPlugin from 'uglifyjs-webpack-plugin';
import TerserPlugin from 'terser-webpack-plugin';

const __filename = fileURLToPath(import.meta.url);
Expand Down
Loading

0 comments on commit ef5792f

Please sign in to comment.