Lint #18614
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: Run linter | |
on: | |
push: | |
jobs: | |
lint: | |
env: | |
GOVUK_NOTIFY_API_KEY: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1.4.4 | |
with: | |
node-version: '14' | |
- name: Yarn install | |
run: npm i -g yarn && yarn | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@9bc07a3af02ce5950e977cab8b77210dc3178328 | |
with: | |
ruby-version: 2.7.2 | |
- name: Install dependencies | |
run: bundle install | |
- name: Create mail log file | |
run: mkdir log && touch log/mail.log | |
- name: Lint ruby | |
run: rubocop | |
- name: Lint SCSS | |
run: bundle exec rake lint:scss | |
- name: Lint JS | |
run: yarn lint |