@@ -21,32 +21,33 @@ jobs:
2121 make :
2222 strategy :
2323 matrix :
24- test_task : ["check", "test-syntax-suggest", "test-bundler-parallel", "test-bundled-gems"]
25- os :
26- - ubuntu-20.04
27- configure : ["", "cppflags=-DRUBY_DEBUG"]
24+ # main variables included in the job name
25+ test_task : [check]
26+ configure : [cppflags=-DRUBY_DEBUG] # default to use more assertions
27+ arch : ['']
28+ # specify all jobs with `include` to avoid testing duplicated things
2829 include :
29- - test_task : " check"
30- configure : " "
30+ - test_task : check
31+ - test_task : check
3132 arch : i686
32- - test_task : " check"
33+ configure : ' ' # test without -DRUBY_DEBUG as well
34+ - test_task : check
3335 configure : " --enable-shared --enable-load-relative"
34- skipped_tests : " TestGem#test_.*_from_binstubs.*"
35- continue-on-skipped_tests : true
36- - test_task : " test-all TESTS=--repeat-count=2"
36+ - test_task : test-all TESTS=--repeat-count=2
37+ - test_task : test-syntax-suggest
38+ - test_task : test-bundler-parallel
39+ - test_task : test-bundled-gems
3740 fail-fast : false
3841 env :
3942 GITPULLOPTIONS : --no-tags origin ${{github.ref}}
4043 RUBY_DEBUG : ci
4144 SETARCH : ${{ matrix.arch && format('setarch {0}', matrix.arch) }}
42- runs-on : ${{ matrix.os || ' ubuntu-20.04' }}
45+ runs-on : ubuntu-20.04
4346 if : ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
4447 steps :
4548 - run : mkdir build
4649 working-directory :
4750 - name : Set ENV
48- env :
49- configure : ${{matrix.configure}}
5051 run : |
5152 echo "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
5253 - name : Install libraries
@@ -120,7 +121,7 @@ jobs:
120121 payload : |
121122 {
122123 "ci": "GitHub Actions",
123- "env": "${{ matrix.os }} / ${{ matrix.test_task }}${{ matrix.configure }}",
124+ "env": "${{ github.workflow }} / ${{ matrix.test_task }} ${{ matrix.configure }}${{ matrix.arch }}",
124125 "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
125126 "commit": "${{ github.sha }}",
126127 "branch": "${{ github.ref }}".split('/').reverse()[0]
0 commit comments