.github/workflows/lint.yml in slack_webhook_logger-0.4.0 vs .github/workflows/lint.yml in slack_webhook_logger-0.5.0
- old
+ new
@@ -1,21 +1,23 @@
name: Linting
on:
pull_request:
- types: [opened, synchronize, reopened]
- push:
- branches:
- - main
+ paths:
+ - "**/*.rb"
+permissions:
+ contents: read
+
jobs:
- test:
+ lint:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: ruby/setup-ruby@v1
+ - uses: actions/checkout@v3
+
+ - name: Set up Ruby
+ uses: yettoapp/actions/setup-languages@main
with:
- ruby-version: 2.7
- bundler-cache: true
- - run: bundle install
+ ruby: true
+
- name: Rubocop
run: bundle exec rake rubocop