-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Split pipelines and specify node version * Fix README.md * Upgrade decidim and fix stylesheet packs * Run Push CI only on main branch
- Loading branch information
Showing
8 changed files
with
422 additions
and
117 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: "[CI] Lint" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
env: | ||
RUBY_VERSION: 3.0.2 | ||
NODE_VERSION: 16.9.1 | ||
|
||
jobs: | ||
lint-report: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ env.RUBY_VERSION }} | ||
bundler-cache: true | ||
|
||
- run: npm ci | ||
name: Install JS deps | ||
|
||
- run: bundle exec rubocop -P | ||
name: Lint Ruby files | ||
|
||
- run: bundle exec erblint app/{cells,views}/**/*.erb | ||
name: Lint ERB files | ||
|
||
- run: npm run lint | ||
name: Lint JS files |
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
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
Oops, something went wrong.