Merge pull request #49318 from yahonda/add_changelog_entry_for_bigdec… #67
This file contains 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: Lint | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_WITHOUT: db:job:cable:storage:ujs | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby 3.2 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
bundler-cache: true | |
- name: mdl | |
run: bundle exec rake -f guides/Rakefile guides:lint | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install codespell==2.1.0 | |
- name: Check spelling with codespell | |
run: codespell --ignore-words=codespell.txt --skip="./vendor/bundle,./actionview/test/ujs/public/vendor/qunit.js,./actiontext/app/assets/javascripts/trix.js,./yarn.lock" || exit 1 | |
- 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 }} |