mirror of
				https://github.com/threeal/cmake-action.git
				synced 2025-11-03 21:33:42 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									3b4a441de9
								
							
						
					
					
						commit
						28146ffccf
					
				@ -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"],
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										20
									
								
								.github/workflows/test.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/test.yaml
									
									
									
									
										vendored
									
									
								
							@ -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
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -4,7 +4,6 @@
 | 
				
			|||||||
!.yarnrc.yml
 | 
					!.yarnrc.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
build/
 | 
					build/
 | 
				
			||||||
coverage/
 | 
					 | 
				
			||||||
node_modules/
 | 
					node_modules/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
src/**/*.mjs
 | 
					src/**/*.mjs
 | 
				
			||||||
 | 
				
			|||||||
@ -1,11 +0,0 @@
 | 
				
			|||||||
{
 | 
					 | 
				
			||||||
  "collectCoverage": true,
 | 
					 | 
				
			||||||
  "coverageThreshold": {
 | 
					 | 
				
			||||||
    "global": {
 | 
					 | 
				
			||||||
      "branches": 100,
 | 
					 | 
				
			||||||
      "functions": 100,
 | 
					 | 
				
			||||||
      "lines": 100,
 | 
					 | 
				
			||||||
      "statements": 100
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -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"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
				
			|||||||
@ -1 +0,0 @@
 | 
				
			|||||||
test("some test", () => {});
 | 
					 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user