Bump tar and node-sass #419
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: "[CI] Lint" | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
- release/* | |
- "*-stable" | |
pull_request: | |
branches-ignore: | |
- "chore/l10n*" | |
env: | |
CI: "true" | |
SIMPLECOV: "true" | |
RUBY_VERSION: 2.5.3 | |
NODE_VERSION: 12.9.1 | |
jobs: | |
lint: | |
name: Lint code | |
runs-on: ubuntu-latest | |
if: "!startsWith(github.head_ref, 'chore/l10n')" | |
steps: | |
- uses: rokroskar/[email protected] | |
if: "github.ref != 'refs/heads/master' || github.ref != 'refs/heads/develop'" | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 1 | |
- uses: ruby/setup-ruby@master | |
with: | |
ruby-version: ${{ env.RUBY_VERSION }} | |
- uses: actions/setup-node@master | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Recover Ruby dependency cache | |
uses: actions/cache@v1 | |
with: | |
path: ./vendor/bundle | |
key: ${{ runner.OS }}-rubydeps-${{ hashFiles('Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-rubydeps-${{ env.cache-name }}- | |
${{ runner.OS }}-rubydeps- | |
${{ runner.OS }}- | |
- run: bundle install --path vendor/bundle --jobs 4 --retry 3 | |
name: Install Ruby deps | |
- run: npm ci | |
name: Install JS deps | |
- run: bundle exec rubocop -P | |
name: Lint Ruby files | |
- run: npm run lint | |
name: Lint JS files | |
- run: ./.github/run_erblint.sh | |
name: Lint ERB files | |
- run: bundle exec mdl *.md docs/**/*.md | |
name: Lint Markdown files |