forked from puma/puma
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (57 loc) · 1.56 KB
/
rack2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Rack_v2
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
rack_v2:
name: >-
Rack_v2: ${{ matrix.os }} ${{ matrix.ruby }}
env:
CI: true
TESTOPTS: -v
PUMA_TEST_DEBUG: true
PUMA_NO_RUBOCOP: true
PUMA_CI_RACK_2: true
runs-on: ${{ matrix.os }}
if: |
!( contains(github.event.pull_request.title, '[ci skip]')
|| contains(github.event.pull_request.title, '[skip ci]'))
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04 ]
ruby: [ 2.4, 3.1 ]
steps:
- name: repo checkout
uses: actions/checkout@v3
- name: load ruby
uses: ruby/setup-ruby-pkgs@v1
with:
ruby-version: ${{ matrix.ruby }}
apt-get: ragel
brew: ragel
# below is only needed for Ruby 2.4
mingw: openssl
bundler-cache: true
timeout-minutes: 10
# fixes 'has a bug that prevents `required_ruby_version`'
- name: update rubygems for Ruby 2.4 - 2.5
if: contains('2.4 2.5', matrix.ruby)
run: gem update --system 3.3.14 --no-document
continue-on-error: true
timeout-minutes: 5
- name: set WERRORFLAG
shell: bash
run: echo 'PUMA_MAKE_WARNINGS_INTO_ERRORS=true' >> $GITHUB_ENV
- name: compile
run: bundle exec rake compile
- name: test
timeout-minutes: 10
run: bundle exec rake test:all