diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 44908a99..d382997f 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -10,18 +10,21 @@ on: - '**' jobs: build: - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os_and_command.os }} strategy: matrix: ruby: [ '2.5', '2.6', '2.7', '3.0', 'truffleruby-head' ] - os: ['ubuntu-latest', 'macos-latest'] - task: ['test/config/update_certs_k0s.rb'] + os_and_command: + - os: 'macos-latest' + command: 'bundle exec rake' + - os: ubuntu-latest + command: 'test/config/update_certs_k0s.rb' include: # run rubocop against lowest supported ruby - os: ubuntu-latest ruby: '2.5' - task: 'bundle exec rake rubocop' - name: ${{ matrix.os }} ${{ matrix.ruby }} rake ${{ matrix.task }} + command: 'bundle exec rake rubocop' + name: ${{ matrix.os_and_command.os }} ${{ matrix.ruby }} rake ${{ matrix.os_and_command.command }} steps: - uses: actions/checkout@v2 # actions/setup-ruby did not support truffle or bundler caching @@ -31,5 +34,5 @@ jobs: bundler-cache: false # disable running 'bundle install' and caching installed gems see https://github.com/httprb/http/issues/572 - run: gem install rake bundler - run: bundle install - - run: ${{ matrix.task }} + - run: ${{ matrix.os_and_command.command }}