Skip to content

Commit

Permalink
Merge pull request #170 from linyimin0812/refactor/20240707_remove_us…
Browse files Browse the repository at this point in the history
…eless_statement_1

fix: change file_count in test.yml
  • Loading branch information
linyimin0812 authored Jul 7, 2024
2 parents 50f6211 + 026f814 commit 4ab577d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
sleep 30
file_count=$(ls -al /Users/runner/spring-startup-analyzer/output/ | grep -c "mac-demo")
if [ "$file_count" -eq 2 ]; then
if [ "$file_count" -eq 3 ]; then
echo "mac-test success"
echo "================startup log================"
cat /Users/runner/spring-startup-analyzer/logs/startup.log
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
sleep 30
file_count=$(ls -al /home/runner/spring-startup-analyzer/output/ | grep -c "generic-linux-x64-demo")
if [ "$file_count" -eq 2 ]; then
if [ "$file_count" -eq 3 ]; then
echo "mac-test success"
echo "================startup log================"
cat /home/runner/spring-startup-analyzer/logs/startup.log
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
$file_count = (Get-ChildItem -Path C:\runner\spring-startup-analyzer\output\*).Count
if ($file_count -eq 4) {
if ($file_count -eq 5) {
Write-Host "windows-test success"
Write-Host "================startup log================"
Get-Content C:\runner\spring-startup-analyzer\logs\startup.log
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
sleep 60

file_count=$(ls -al /home/runner/spring-startup-analyzer/output/ | grep -c "generic-linux-arm64-demo")
if [ "$file_count" -eq 2 ]; then
if [ "$file_count" -eq 3 ]; then
echo "mac-test success"
echo "================startup log================"
cat /home/runner/spring-startup-analyzer/logs/startup.log
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:
sleep 30
file_count=$(ls -al /home/runner/spring-startup-analyzer/output/ | grep -c "alpine-linux-x64-demo")
if [ "$file_count" -eq 2 ]; then
if [ "$file_count" -eq 3 ]; then
echo "mac-test success"
echo "================startup log================"
cat /home/runner/spring-startup-analyzer/logs/startup.log
Expand Down Expand Up @@ -279,7 +279,7 @@ jobs:
sleep 120
file_count=$(ls -al /home/runner/spring-startup-analyzer/output/ | grep -c "alpine-linux-arm64-demo")
if [ "$file_count" -eq 2 ]; then
if [ "$file_count" -eq 3 ]; then
echo "mac-test success"
echo "================startup log================"
cat /home/runner/spring-startup-analyzer/logs/startup.log
Expand Down

0 comments on commit 4ab577d

Please sign in to comment.