1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Add CI step to run future extension tests (#1214)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2020-11-04 05:49:37 -05:00 committed by GitHub
parent 0497947159
commit d7c7593c0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 72 additions and 33 deletions

View File

@ -39,6 +39,8 @@ jobs:
displayName: Install dependencies
- script: make integration-win
displayName: Run integration tests
- script: make test-extensions
displayName: Run In-tree Extension tests
- script: make build
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
displayName: Build
@ -78,6 +80,8 @@ jobs:
displayName: Run tests
- script: make integration-mac
displayName: Run integration tests
- script: make test-extensions
displayName: Run In-tree Extension tests
- script: make build
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
displayName: Build
@ -119,6 +123,8 @@ jobs:
condition: eq(variables.CACHE_RESTORED, 'true')
- script: make install-deps
displayName: Install dependencies
- script: make test-extensions
displayName: Run In-tree Extension tests
- script: make lint
displayName: Lint
- script: make test

View File

@ -33,15 +33,15 @@ lint:
test: download-bins
yarn test
integration-linux:
integration-linux: build-extension-types build-extensions
yarn build:linux
yarn integration
integration-mac:
integration-mac: build-extension-types build-extensions
yarn build:mac
yarn integration
integration-win:
integration-win: build-extension-types build-extensions
yarn build:win
yarn integration
@ -58,10 +58,15 @@ endif
build-extensions:
$(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), $(MAKE) -C $(dir) build;)
build-npm:
yarn compile:extension-types
test-extensions:
$(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), $(MAKE) -C $(dir) test;)
build-npm: build-extension-types
yarn npm:fix-package-version
build-extension-types:
yarn compile:extension-types
publish-npm: build-npm
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
cd src/extensions/npm/extensions && npm publish --access=public

View File

@ -6,4 +6,4 @@ import appInfo from "../package.json"
const packagePath = path.join(__dirname, "../src/extensions/npm/extensions/package.json")
packageInfo.version = appInfo.version
fs.writeFileSync(packagePath, JSON.stringify(packageInfo, null, 2))
fs.writeFileSync(packagePath, JSON.stringify(packageInfo, null, 2) + "\n")

View File

@ -1,5 +1,8 @@
install-deps:
npm install
yarn install
build: install-deps
npm run build
yarn run build
test:
yarn run test

View File

@ -10,7 +10,8 @@
},
"scripts": {
"build": "webpack --config webpack.config.js",
"dev": "npm run build --watch"
"dev": "npm run build --watch",
"test": "echo NO TESTS"
},
"dependencies": {
"react-open-doodles": "^1.0.5"

View File

@ -1,5 +1,8 @@
install-deps:
npm install
yarn install
build: install-deps
npm run build
yarn run build
test:
yarn run test

View File

@ -5,7 +5,8 @@
"main": "dist/main.js",
"scripts": {
"build": "webpack -p",
"dev": "webpack --watch"
"dev": "webpack --watch",
"test": "echo NO TESTS"
},
"dependencies": {},
"devDependencies": {

View File

@ -1,5 +1,8 @@
install-deps:
npm install
yarn install
build: install-deps
npm run build
yarn run build
test:
yarn run test

View File

@ -9,7 +9,8 @@
},
"scripts": {
"build": "webpack --config webpack.config.js",
"dev": "npm run build --watch"
"dev": "npm run build --watch",
"test": "echo NO TESTS"
},
"dependencies": {
"semver": "^7.3.2"

View File

@ -1,5 +1,8 @@
install-deps:
npm install
yarn install
build: install-deps
npm run build
yarn run build
test:
yarn run test

View File

@ -9,7 +9,8 @@
},
"scripts": {
"build": "webpack --config webpack.config.js",
"dev": "npm run build --watch"
"dev": "npm run build --watch",
"test": "echo NO TESTS"
},
"dependencies": {},
"devDependencies": {

View File

@ -1,5 +1,8 @@
install-deps:
npm install
yarn install
build: install-deps
npm run build
yarn run build
test:
yarn run test

View File

@ -9,7 +9,8 @@
},
"scripts": {
"build": "webpack --config webpack.config.js",
"dev": "npm run build --watch"
"dev": "npm run build --watch",
"test": "echo NO TESTS"
},
"dependencies": {},
"devDependencies": {

View File

@ -1,5 +1,8 @@
install-deps:
npm install
yarn install
build: install-deps
npm run build
yarn run build
test:
yarn run test

View File

@ -6,7 +6,8 @@
"renderer": "dist/renderer.js",
"scripts": {
"build": "webpack -p",
"dev": "webpack --watch"
"dev": "webpack --watch",
"test": "echo NO TESTS"
},
"dependencies": {},
"devDependencies": {

View File

@ -1,5 +1,8 @@
install-deps:
npm install
yarn install
build: install-deps
npm run build
yarn run build
test:
yarn run test

View File

@ -8,12 +8,6 @@
"version": "file:../../src/extensions/npm/extensions",
"dev": true
},
"@types/analytics-node": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/@types/analytics-node/-/analytics-node-3.1.3.tgz",
"integrity": "sha512-Yk299LUqnyJ6fNYQkLFd0yTfUwIvgfxH3f5WEX3ib0PC5T+mZgqcOPMDhNZ4AOD/A9tXKJQeBIb6KvgzuXflaQ==",
"dev": true
},
"@segment/loosely-validate-event": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@segment/loosely-validate-event/-/loosely-validate-event-2.0.0.tgz",
@ -24,6 +18,12 @@
"join-component": "^1.1.0"
}
},
"@types/analytics-node": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/@types/analytics-node/-/analytics-node-3.1.3.tgz",
"integrity": "sha512-Yk299LUqnyJ6fNYQkLFd0yTfUwIvgfxH3f5WEX3ib0PC5T+mZgqcOPMDhNZ4AOD/A9tXKJQeBIb6KvgzuXflaQ==",
"dev": true
},
"@webassemblyjs/ast": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz",

View File

@ -10,7 +10,8 @@
},
"scripts": {
"build": "webpack -p",
"dev": "webpack --watch"
"dev": "webpack --watch",
"test": "echo NO TESTS"
},
"dependencies": {},
"devDependencies": {