-
Notifications
You must be signed in to change notification settings - Fork 3
79 lines (68 loc) · 2.04 KB
/
Copy pathtest.yml
File metadata and controls
79 lines (68 loc) · 2.04 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
name: CI
on: [push, pull_request]
jobs:
test:
name: >-
${{ matrix.os }} ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
ruby:
- "3.4"
- "3.3"
- "3.2"
- "3.1"
- "3.0"
- "2.7"
- "2.6"
- "2.5"
- "2.4"
- "head"
- "jruby"
- "jruby-head"
- "truffleruby"
- "truffleruby-head"
exclude:
- os: windows-latest
ruby: truffleruby
- os: windows-latest
ruby: truffleruby-head
- os: macos-latest
ruby: 2.4
- os: macos-latest
ruby: 2.5
steps:
- name: repo checkout
uses: actions/checkout@v2
- name: load ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: install libidn2
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update -qq -o Acquire::Retries=3 &&
sudo apt-get install --fix-missing -qq -o Acquire::Retries=3 idn2
- name: install libidn2
if: matrix.os == 'macos-latest'
run: brew install libidn2
- name: install dev tools
if: matrix.os == 'windows-latest'
run: choco install make mingw
- name: test
run: bundle exec rake test
continue-on-error: ${{ matrix.os == 'windows-latest' || matrix.ruby == 'head' || matrix.ruby == 'jruby-head' || matrix.ruby == 'truffleruby-head' }}
- name: lint
run: bundle exec rake rubocop
if: matrix.ruby == '3.4'
- name: rbs collection
run: bundle exec rbs collection install
if: matrix.ruby == '3.4'
- name: runtime type check
run: bundle exec rbs -r ffi test --target "Idnx*" rake test
if: matrix.ruby == '3.4'
- name: static type check
run: bundle exec steep check
if: matrix.ruby == '3.4'