2828 with :
2929 version : latest
3030 only-new-issues : true
31- skip-cache : true
32- - name : Linting complete
31+ skip-cache : false
32+ - name : Linting complete # <- report summary when we have good news to report
3333 run : |
3434 echo "### Your changes to the go code look good. 👍" >> $GITHUB_STEP_SUMMARY
3535 echo "" >> $GITHUB_STEP_SUMMARY
3939 unit_tests :
4040 name : Unit tests
4141 # description: |
42- # Run go unit tests run 6x : linux, mac & windows on the 2 latest go versions.
42+ # Run go unit tests run x6 : linux, mac & windows on the 2 latest go versions.
4343 #
4444 # Run tests with the -race flag.
4545 #
@@ -56,16 +56,15 @@ jobs:
5656
5757 strategy :
5858 matrix :
59- # os: [ ubuntu-latest, macos-latest, windows-latest ]
60- os : [ ubuntu-latest ]
59+ os : [ ubuntu-latest, macos-latest, windows-latest ]
6160 go_version : ['oldstable', 'stable' ]
6261
6362 steps :
6463 - uses : actions/setup-go@v5
6564 with :
6665 go-version : ' ${{ matrix.go_version }}'
6766 check-latest : true
68- cache : true
67+ cache : true # <- cache key is go.sum
6968
7069 - uses : actions/checkout@v5
7170
@@ -114,19 +113,21 @@ jobs:
114113 steps :
115114 - name : Tests complete
116115 run : |
117- echo "All tests completed. 👍" >> $GITHUB_STEP_SUMMARY
116+ echo "### All tests completed. 👍" >> $GITHUB_STEP_SUMMARY
117+ echo "" >> $GITHUB_STEP_SUMMARY
118+ echo "> ℹ️ INFO: we run unit tests in 6 different configurations of OS and go version." >> $GITHUB_STEP_SUMMARY
119+ echo "> At this moment, we don't run architecture-specific test runs" >> $GITHUB_STEP_SUMMARY
118120 echo "" >> $GITHUB_STEP_SUMMARY
119121 echo "| go version | OS | Result |" >> $GITHUB_STEP_SUMMARY
120122 echo "|------------|----|--------|" >> $GITHUB_STEP_SUMMARY
121123 declare -a lines
122124 eval "lines=($(echo $test_result|tr ',' ' '))"
123125 for line in "${lines[@]}";do echo "${line}" ; done >> $GITHUB_STEP_SUMMARY
124- cat $GITHUB_STEP_SUMMARY
125126
126127 some_failed_tests :
127128 name : Some tests have failed
128129 # description: |
129- # This job is only here to report a summary of failed tests in the github actions UI
130+ # This job is only here to report a summary of failed tests in the github actions UI.
130131 needs : [ unit_tests ] # <- requires all unit_tests jobs to be completed, but not necessarily successfully.
131132 if : ${{ needs.unit_tests.result == 'failure' }}
132133 env :
0 commit comments