Skip to content

Commit

Permalink
set CI env when running tests in GH
Browse files Browse the repository at this point in the history
  • Loading branch information
cars10 committed Jul 23, 2023
1 parent 9498f55 commit 699412f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: run tests
run: make ci
run: make CI=1 ci
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
CI ?=

build_docker_ci:
docker build -f docker/Dockerfile_ci -t elasticvue-ci .

ci: build_docker_ci
docker run --rm elasticvue-ci yarn lint
docker run --rm elasticvue-ci yarn tsc
docker run --rm elasticvue-ci yarn test:unit
docker run --rm elasticvue-ci yarn test:e2e:all
docker run --rm -e CI="$(CI)" elasticvue-ci yarn test:e2e:all

build_tauri:
yarn tauri:build
Expand Down

0 comments on commit 699412f

Please sign in to comment.