-
Notifications
You must be signed in to change notification settings - Fork 14
69 lines (59 loc) · 1.53 KB
/
Copy pathtest.yaml
File metadata and controls
69 lines (59 loc) · 1.53 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
name: Test
on:
push:
branches:
- "**"
pull_request:
types:
- opened
- reopened
- synchronize
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.event_name
== 'pull_request_target' }}
jobs:
test:
runs-on: ubuntu-24.04
strategy:
matrix:
ruby-version:
- "3.1"
- "3.4"
- jruby
fail-fast: false
env:
BUNDLE_WITHOUT: lint
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run RSpec tests
run: /usr/bin/timeout -s QUIT 120 bundle exec rake test
timeout-minutes: 3
env:
MRI_RUBY: "env RUBYOPT= RUBYLIB= /usr/bin/ruby"
lint-and-build:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
- name: Check code formatting with Standard Ruby
run: bundle exec standardrb
- name: Build gem
run: bundle exec rake gem