-
-
Notifications
You must be signed in to change notification settings - Fork 23
84 lines (84 loc) · 2.44 KB
/
Copy pathx-objects.yml
File metadata and controls
84 lines (84 loc) · 2.44 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
82
83
84
name: x-objects
on:
push:
# A tag names a commit whose push ran this workflow already, and a push of a tag skips the paths filter
branches:
- "**"
paths:
- "x-objects/**"
- "!x-objects/**.md"
- "x-core/lib/**"
- "x-core/sig/*.rbs"
- "x-core/x-core.gemspec"
- "VERSION"
- ".github/workflows/x-objects.yml"
# Run on a commit that changes none of the paths above, such as documentation alone, before it is tagged, since the
# workflow that pushes the gems waits for this one to pass on the tagged commit: gh workflow run <file> --ref main
workflow_dispatch:
pull_request:
paths:
- "x-objects/**"
- "!x-objects/**.md"
- "x-core/lib/**"
- "x-core/sig/*.rbs"
- "x-core/x-core.gemspec"
- "VERSION"
- ".github/workflows/x-objects.yml"
defaults:
run:
working-directory: x-objects
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
# JRuby is left out: its line coverage misses lines it runs, such as an empty array literal, so the
# suite cannot hold to the 100% floor there
ruby: ["3.4", "4.0", "ruby-head"]
include:
- os: macos-latest
ruby: "3.4"
- os: windows-latest
ruby: "3.4"
runs-on: ${{ matrix.os }}
# A head Ruby is informational: it reports a break before the release that carries it, without blocking a merge
continue-on-error: ${{ endsWith(matrix.ruby, '-head') }}
steps:
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
working-directory: x-objects
- run: bundle exec rake test
mutant:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
working-directory: x-objects
- run: bundle exec rake mutant
steep:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
working-directory: x-objects
- run: bundle exec rake steep
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
working-directory: x-objects
- run: bundle exec rake yardstick