Friendships v1 #700
Workflow file for this run
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: Linters | |
on: pull_request | |
env: | |
FORCE_COLOR: 1 | |
jobs: | |
rubocop: | |
name: Rubocop | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 2.6.x | |
- name: Setup Rubocop | |
run: | | |
gem install --no-document rubocop:'~>0.81.0' # https://docs.rubocop.org/en/stable/installation/ | |
[ -f .rubocop.yml ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/ror/.rubocop.yml | |
- name: Rubocop Report | |
run: rubocop --color | |
stylelint: | |
name: Stylelint | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- name: Setup Stylelint | |
run: | | |
npm install --save-dev [email protected] [email protected] [email protected] stylelint-csstree-validator | |
[ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/ror/.stylelintrc.json | |
- name: Stylelint Report | |
run: npx stylelint "**/*.{css,scss}" |