refactor(cmd/joj3)!: conf #51
							
								
								
									
										3
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								Makefile
									
									
									
									
									
								
							| 
						 | 
					@ -30,5 +30,4 @@ test:
 | 
				
			||||||
ci-test:
 | 
					ci-test:
 | 
				
			||||||
	./scripts/prepare_test_repos.sh $(TMP_DIR)
 | 
						./scripts/prepare_test_repos.sh $(TMP_DIR)
 | 
				
			||||||
	./scripts/run_foreach_test_repos.sh $(TMP_DIR) "sed -i '2i \ \ \"sandboxExecServer\": \"172.17.0.1:5051\",' conf.json"
 | 
						./scripts/run_foreach_test_repos.sh $(TMP_DIR) "sed -i '2i \ \ \"sandboxExecServer\": \"172.17.0.1:5051\",' conf.json"
 | 
				
			||||||
	export GITHUB_ACTIONS="test"
 | 
						GITHUB_ACTIONS="test" go test -coverprofile cover.out -v ./...
 | 
				
			||||||
	go test -coverprofile cover.out -v ./...
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,6 +13,7 @@ import (
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func Run(conf conf.Conf) error {
 | 
					func Run(conf conf.Conf) error {
 | 
				
			||||||
	actions := os.Getenv("GITHUB_ACTIONS")
 | 
						actions := os.Getenv("GITHUB_ACTIONS")
 | 
				
			||||||
 | 
						slog.Info("teapot start", "GITHUB_ACTIONS", actions)
 | 
				
			||||||
	if actions != "true" {
 | 
						if actions != "true" {
 | 
				
			||||||
		slog.Info("teapot exit", "GITHUB_ACTIONS", actions)
 | 
							slog.Info("teapot exit", "GITHUB_ACTIONS", actions)
 | 
				
			||||||
		return nil
 | 
							return nil
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user