Skip to content

Commit e105ee2

Browse files
committed
CI: run on windows
Don't know if it works, let's try :-) 'windows-latest` currently means Windows Server 2022 (https://github.blog/changelog/2022-01-11-github-actions-jobs-running-on-windows-latest-are-now-running-on-windows-server-2022/)
1 parent d9672bd commit e105ee2

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/actions.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,32 @@ jobs:
1414
runs-on: ${{ matrix.os_and_command.os }}
1515
strategy:
1616
matrix:
17-
ruby: [ '2.5', '2.6', '2.7', '3.0', '3.1', 'ruby-head', 'truffleruby-head' ]
17+
ruby: [ '2.5', '2.6', '2.7', '3.0', '3.1', 'ruby-head' ]
18+
# The k0s script does more testing but needs docker, only works on ubuntu.
1819
os_and_command:
19-
- os: 'macos-latest'
20+
- os: macos-latest
21+
command: 'env TESTOPTS="--verbose" bundle exec rake test'
22+
- os: windows-latest
2023
command: 'env TESTOPTS="--verbose" bundle exec rake test'
2124
- os: ubuntu-latest
2225
# Sometimes minitest starts and then just hangs printing nothing.
2326
# Github by default kills after 6hours(!). Hopefully SIGTERM may let it print some details?
2427
command: 'timeout --signal=TERM 3m env TESTOPTS="--verbose" test/config/update_certs_k0s.rb'
2528
include:
26-
# run rubocop against lowest supported ruby
27-
- os: ubuntu-latest
28-
ruby: '2.5'
29-
command: 'bundle exec rake rubocop'
29+
# As of 2022 Aug, truffleruby-dev-builder had no build for windows.
30+
- ruby: 'truffleruby-head'
31+
os_and_command:
32+
- os: macos-latest
33+
command: 'env TESTOPTS="--verbose" bundle exec rake test'
34+
- ruby: 'truffleruby-head'
35+
os_and_command:
36+
os: ubuntu-latest
37+
command: 'timeout --signal=TERM 3m env TESTOPTS="--verbose" test/config/update_certs_k0s.rb'
38+
# Run rubocop in 1 job only, against lowest supported ruby.
39+
- ruby: '2.5'
40+
os_and_command:
41+
- os: ubuntu-latest
42+
command: 'bundle exec rake rubocop'
3043
name: ${{ matrix.os_and_command.os }} ${{ matrix.ruby }} rake ${{ matrix.os_and_command.command }}
3144
steps:
3245
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)