Skip to content

Commit

Permalink
tests: Create real cluster on github CI
Browse files Browse the repository at this point in the history
Yay, `docker run --priviledged` is allowed!  k0s starts up really fast too.
(only on ubuntu, regular tests on macos because no `docker`.)
  • Loading branch information
cben committed Mar 4, 2022
1 parent 0c6973f commit f4c1a48
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]
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: 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: bundle exec rake ${{ matrix.task }}
- run: ${{ matrix.os_and_command.command }}

0 comments on commit f4c1a48

Please sign in to comment.