Repository navigation
55 lines (55 loc) · 1.4 KB
/
Copy pathlint.yml
File metadata and controls
55 lines (55 loc) · 1.4 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
name: linter
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:
- "**.rb"
- "**.rbs"
- "**/Gemfile"
- "**/Rakefile"
- "**/Steepfile"
- "**.gemspec"
- "**/sig/manifest.yaml"
- "bin/**"
- ".rubocop.yml"
- ".standard.yml"
- "VERSION"
- ".github/workflows/lint.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:
- "**.rb"
- "**.rbs"
- "**/Gemfile"
- "**/Rakefile"
- "**/Steepfile"
- "**.gemspec"
- "**/sig/manifest.yaml"
- "bin/**"
- ".rubocop.yml"
- ".standard.yml"
- "VERSION"
- ".github/workflows/lint.yml"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
- run: bundle exec rake lint
signatures:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
- run: bundle exec rake signatures