-
Notifications
You must be signed in to change notification settings - Fork 1.4k
81 lines (76 loc) · 2.39 KB
/
Copy pathtest.yml
File metadata and controls
81 lines (76 loc) · 2.39 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Test
on:
push:
branches: [master]
paths-ignore:
- '*.md'
- 'lib/fluent/version.rb'
pull_request:
branches: [master]
paths-ignore:
- '*.md'
- 'lib/fluent/version.rb'
workflow_dispatch:
concurrency:
group: ${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
permissions: read-all
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 3.2
test:
needs: ruby-versions
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest', 'windows-11-arm']
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
exclude:
- ruby-version: head
- os: 'windows-11-arm'
ruby-version: '3.3'
- os: 'windows-11-arm'
ruby-version: '3.2'
env:
RUBYOPT: "--disable-frozen_string_literal"
name: Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Ruby
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install addons
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get install libgmp3-dev libcap-ng-dev
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake test TESTOPTS="-v --report-slow-tests --no-show-detail-immediately"
test-windows-service:
needs: ruby-versions
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
exclude:
- ruby-version: head
name: Windows service (Ruby ${{ matrix.ruby-version }})
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Ruby
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: |
bundle install
rake install
- name: Run tests
run: test\scripts\windows_service_test.ps1