name: lint
on: [push]
jobs:
  js_css:
    runs-on: ubuntu-latest
    env:
      DISCOURSE_VERSION: __DISCOURSE_VERSION__
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 18
      - run: npm ci
      - run: npm run lint
  rubocop:
    runs-on: ubuntu-latest
    env:
      DISCOURSE_VERSION: __DISCOURSE_VERSION__
    steps:
      - uses: actions/checkout@v4
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: __RUBY_VERSION__
      - run: bundle install --path vendor/bundle
      - run: bundle exec rubocop