Skip to content

Commit

Permalink
CI: start k0s only on ubuntu, regular tests on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
cben committed Mar 4, 2022
1 parent ab0a398 commit 79a20c1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 79a20c1

Please sign in to comment.