forked from carbon-design-system/carbon
-
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.
ci(workflows): move lint and format to GitHub Actions (carbon-design-…
…system#7547) * ci: move lint and format to GitHub Actions * chore(ci): update to include installing dependencies * chore(ci): update label for format job Co-authored-by: Andrea N. Cardona <[email protected]>
- Loading branch information
1 parent
bc30e1c
commit 477f97a
Showing
3 changed files
with
36 additions
and
3 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 |
---|---|---|
|
@@ -14,3 +14,31 @@ jobs: | |
node-version: '14.x' | ||
- name: Run yarn dedupe | ||
run: yarn dedupe --check | ||
|
||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 14.x | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '14.x' | ||
- name: Install dependencies | ||
run: yarn install --immutable --immutable-cache | ||
- name: Check formatting of project files | ||
run: yarn format:diff | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 14.x | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '14.x' | ||
- name: Install dependencies | ||
run: yarn install --immutable --immutable-cache | ||
- name: Lint JavaScript files | ||
run: yarn lint | ||
- name: Lint Sass files | ||
run: yarn lint:styles |
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