forked from openlawteam/openlaw-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(ci): replace third-party shellcheck action (openlawteam#209)
* replace third-party shellcheck action and use checkout@v2 * specify files to check * name lint js job
- Loading branch information
Showing
1 changed file
with
8 additions
and
6 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 |
---|---|---|
|
@@ -3,28 +3,30 @@ name: Linters on push | |
|
||
jobs: | ||
lint-js: | ||
name: Run JS lints | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "10.x" | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
- run: npm ci | ||
- run: npm run lint | ||
- run: npm run style | ||
|
||
lint-shell: | ||
runs-on: ubuntu-latest | ||
name: Run shellcheck | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Shellcheck Lint | ||
uses: azohra/[email protected] | ||
- uses: actions/checkout@v2 | ||
- name: shellcheck | ||
run: shellcheck ci/*.sh scripts/*.sh | ||
|
||
lint-scala: | ||
name: Run scalafmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- uses: openlawteam/scalafmt-ci@v2 |