Repository navigation
Prepare for version 1.0.0 release #353
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |