Skip to content

Bump ruby/setup-ruby from 1.281.0 to 1.284.0 (#1569) #1297

Bump ruby/setup-ruby from 1.281.0 to 1.284.0 (#1569)

Bump ruby/setup-ruby from 1.281.0 to 1.284.0 (#1569) #1297

Workflow file for this run

name: Lint
on:
push:
branches:
- '**'
- '!dependabot/**'
pull_request:
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
lint:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
# libyaml-dev is needed for psych, see https://github.com/ruby/setup-ruby/issues/409
- if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt install libyaml-dev
- name: Set up Ruby
uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf # v1.284.0
with:
ruby-version: 3.3
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop
- name: Run herb linter
# npx should be available by default so we don't need `setup-node` action
# Don't lint erb files outside of lib as the current directory also includes vendor/bundle
run: npx @herb-tools/linter "lib/**/*.rhtml"
- name: Install npm dependencies
run: npm ci
- name: Run stylelint
run: npm run lint:css