ci: remove unit testing (#198)

* ci(test): remove `test-package` job

* test: remove testing using Jest

* test(eslint): remove `parserOptions` entry
This commit is contained in:
Alfi Maulana 2024-02-16 13:13:16 +07:00 committed by GitHub
parent 3b4a441de9
commit 28146ffccf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 17 additions and 2346 deletions

View File

@ -2,10 +2,6 @@
"root": true, "root": true,
"ignorePatterns": ["dist"], "ignorePatterns": ["dist"],
"extends": ["eslint:recommended", "prettier"], "extends": ["eslint:recommended", "prettier"],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"overrides": [ "overrides": [
{ {
"files": ["**/*.mts", "**/*.ts"], "files": ["**/*.mts", "**/*.ts"],
@ -19,12 +15,6 @@
"tsdoc/syntax": "error" "tsdoc/syntax": "error"
} }
}, },
{
"files": ["**/*.test.*"],
"env": {
"jest": true
}
},
{ {
"files": ["package.json"], "files": ["package.json"],
"plugins": ["json-files"], "plugins": ["json-files"],

View File

@ -28,26 +28,6 @@ jobs:
- name: Check Lint - name: Check Lint
run: corepack yarn lint run: corepack yarn lint
test-package:
name: Test Package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Setup Node.js
uses: actions/setup-node@v4.0.2
with:
node-version: latest
- name: Install Dependencies
uses: threeal/yarn-install-action@v1.0.0
- name: Test Package
run: corepack yarn test
env:
NODE_OPTIONS: --experimental-vm-modules
test-action: test-action:
name: Test Action name: Test Action
runs-on: ${{ matrix.os }}-latest runs-on: ${{ matrix.os }}-latest

1
.gitignore vendored
View File

@ -4,7 +4,6 @@
!.yarnrc.yml !.yarnrc.yml
build/ build/
coverage/
node_modules/ node_modules/
src/**/*.mjs src/**/*.mjs

View File

@ -1,11 +0,0 @@
{
"collectCoverage": true,
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
}
}

View File

@ -4,8 +4,7 @@
"scripts": { "scripts": {
"build": "tsc && ncc build src/index.mjs -o dist", "build": "tsc && ncc build src/index.mjs -o dist",
"format": "prettier --write --cache . !dist !README.md", "format": "prettier --write --cache . !dist !README.md",
"lint": "eslint --ignore-path .gitignore .", "lint": "eslint --ignore-path .gitignore ."
"test": "tsc && jest"
}, },
"dependencies": { "dependencies": {
"@actions/core": "^1.10.1", "@actions/core": "^1.10.1",
@ -21,7 +20,6 @@
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-json-files": "^4.1.0", "eslint-plugin-json-files": "^4.1.0",
"eslint-plugin-tsdoc": "^0.2.17", "eslint-plugin-tsdoc": "^0.2.17",
"jest": "^29.7.0",
"prettier": "^3.2.5", "prettier": "^3.2.5",
"typescript": "^5.3.3" "typescript": "^5.3.3"
}, },

View File

@ -1 +0,0 @@
test("some test", () => {});

2316
yarn.lock generated

File diff suppressed because it is too large Load Diff