Merge pull request #5567 from dodona-edu/dependabot/npm_and_yarn/sass… #9406
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: | |
workflow_call: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
ruby: | |
name: Lint Ruby | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use ruby from .ruby-version | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Lint with rubocop | |
env: | |
RAILS_ENV: "test" | |
run: | | |
bundle exec rubocop -c .rubocop.yml | |
javascript: | |
name: Lint JavaScript | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16.x | |
cache: yarn | |
- name: Install dependencies | |
run: | | |
yarn install | |
- name: Lint | |
run: | | |
yarn lint --quiet | |
- name: TypeScript type check | |
run: | | |
yarn typeCheck | |
css: | |
name: Lint CSS | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16.x | |
cache: yarn | |
- name: Install dependencies | |
run: | | |
yarn install | |
- name: Lint | |
run: | | |
yarn lint:css | |