【发布时间】:2022-01-28 04:06:25
【问题描述】:
鉴于以下非常标准的工作流程:
name: Test
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ruby: [3.0, 3.1]
runs-on: ${{ matrix.os }}
steps:
- name: Check out
uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: SPEC_SCOPE=all bundle exec rake
根据矩阵单独运行的测试标记如下:
为了更好的理解,矩阵的标注方式可以从“ubuntu-latest, 3.1”改成“ubuntu-latest, ruby-3.1”之类的吗?
【问题讨论】:
标签: github github-actions