Remove redundancy in macOS jobs

I don't think we need to test the same OS twice or the same
configuration twice. This is similar to .github/workflows/ubuntu.yml.

I also tweaked the label of Slack notifications.
This commit is contained in:
Takashi Kokubun 2023-10-11 15:50:29 -07:00
Родитель 94508a8a60
Коммит eca1c2e717
1 изменённых файлов: 7 добавлений и 7 удалений

14
.github/workflows/macos.yml поставляемый
Просмотреть файл

@ -34,12 +34,12 @@ jobs:
strategy:
matrix:
test_task: ['check'] # "test-bundler-parallel", "test-bundled-gems"
os:
- macos-11
- macos-12
configure:
- ''
- '--enable-shared'
# specifying everything else with `include` to avoid redundant tests
include:
- os: macos-11
configure: ''
- os: macos-12
configure: '--enable-shared'
fail-fast: false
env:
@ -102,7 +102,7 @@ jobs:
- uses: ./.github/actions/slack
with:
label: ${{ matrix.test_task }}
label: ${{ matrix.os }} / ${{ matrix.test_task }} ${{ matrix.configure }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() }}