mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
github workflow fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
0b74cf8c6b
commit
8578d44d90
8 files changed
+63
-50
No files matched your search
@@ -0,0 +1,43 @@
|
||||
CMD_ARGS = $(filter-out $@,$(MAKECMDGOALS))
|
||||
|
||||
%:
|
||||
@:
|
||||
|
||||
ELECTRON_BUILDER_EXTRA_ARGS ?=
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
DETECTED_OS := Windows
|
||||
else
|
||||
DETECTED_OS := $(shell uname)
|
||||
endif
|
||||
|
||||
node_modules: yarn.lock
|
||||
yarn install --check-files --frozen-lockfile --network-timeout=100000
|
||||
yarn lerna bootstrap
|
||||
|
||||
.PHONY: lint
|
||||
lint: node_modules
|
||||
yarn lint
|
||||
|
||||
.PHONY: test
|
||||
test: node_modules
|
||||
yarn run test:unit
|
||||
|
||||
.PHONY: integration
|
||||
integration: build
|
||||
yarn test:integration
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
yarn run build
|
||||
ifeq "$(DETECTED_OS)" "Windows"
|
||||
# https://github.com/ukoloff/win-ca#clear-pem-folder-on-publish
|
||||
rm -rf packages/core/node_modules/win-ca/pem
|
||||
endif
|
||||
yarn lerna run build:app --publish onTag $(ELECTRON_BUILDER_EXTRA_ARGS)
|
||||
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
yarn run clean
|
||||
yarn run clean:node_modules
|
||||
Reference in new issue
Block a user