Skip to content

Commit

Permalink
make re before running the tester
Browse files Browse the repository at this point in the history
  • Loading branch information
itislu committed Dec 30, 2023
1 parent b6edae5 commit 547aa2a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:
# GH_BRANCH: "IGNORE"

- name: Set up PR failed count
run: $HOME/42_minishell_tester/tester.sh m > $HOME/pr_test_result.txt
run: |
make re
$HOME/42_minishell_tester/tester.sh m > $HOME/pr_test_result.txt
env:
GH_BRANCH: "PR_FAILED_COUNT"

Expand All @@ -48,7 +50,9 @@ jobs:
GH_BRANCH: "IGNORE"

- name: Set up main failed count
run: $HOME/42_minishell_tester/tester.sh m > $HOME/main_test_result.txt
run: |
make re
$HOME/42_minishell_tester/tester.sh m > $HOME/main_test_result.txt
env:
GH_BRANCH: "MAIN_FAILED_COUNT"

Expand All @@ -59,7 +63,7 @@ jobs:
run: cat $HOME/main_test_result.txt

- name: Compare the difference between PR and main
run: diff --side-by-side $HOME/pr_test_result.txt $HOME/main_test_result.txt
run: diff $HOME/pr_test_result.txt $HOME/main_test_result.txt

- name: Compare failed count
run: |
Expand Down

0 comments on commit 547aa2a

Please sign in to comment.