-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
5 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
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,53 @@ | ||
name: code-gear > lint | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- ci-testing | ||
push: | ||
branches: | ||
- master | ||
- ci-testing | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
lint: | ||
name: Linting project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Derive appropriate SHAs for base and head for `nx affected` commands | ||
uses: nrwl/nx-set-shas@v3 | ||
with: | ||
main-branch-name: 'master' | ||
|
||
- run: | | ||
echo "BASE: ${{ env.NX_BASE }}" | ||
echo "HEAD: ${{ env.NX_HEAD }}" | ||
- name: Installing Node.js 20.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.8.0 | ||
|
||
- name: Cache Yarn dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/yarn | ||
~/.yarn/cache | ||
.yarn/cache | ||
node_modules | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/*.yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Installing dependencies | ||
run: yarn install | ||
|
||
- name: Linting project | ||
run: nx run root:lint |
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