forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (28 loc) · 780 Bytes
/
lint.yml
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
name: Lint
on: [push, pull_request]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: db:job:cable:storage
steps:
- uses: actions/checkout@v4
- name: Remove Gemfile.lock
run: rm -f Gemfile.lock
- name: Set up Ruby 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: mdl
run: bundle exec rake -f guides/Rakefile guides:lint
- run: tools/railspect changelogs .
- run: tools/railspect configuration .
- uses: zzak/action-discord@v8
continue-on-error: true
if: failure() && github.ref_name == 'main'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
webhook: ${{ secrets.DISCORD_WEBHOOK }}