-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github-actions: add lint github action
- Loading branch information
1 parent
e1b467b
commit 587360c
Showing
8 changed files
with
727 additions
and
176 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 |
---|---|---|
@@ -1,17 +1,33 @@ | ||
name: GitHub Actions | ||
run-name: Unit testing ${{ github.actor }} changes | ||
on: [push] | ||
run-name: ${{ github.event.pull_request }} CI Checks | ||
on: | ||
push: | ||
pull_request: | ||
types: [opened, synchronize] | ||
jobs: | ||
"run-unit-tests": | ||
name: "Run unit tests" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: "Use node version" | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
- name: "Install dependencies" | ||
run: npm install | ||
- name: Run tests | ||
run: npm run test | ||
"run-unit-tests": | ||
name: "Run unit tests" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: "Use node version" | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
- name: "Install dependencies" | ||
run: npm install | ||
- name: Run tests | ||
run: npm run test | ||
"lint": | ||
name: "Checking for linting errors" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: "Use node version" | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
- name: "Install dependencies" | ||
run: npm install | ||
- name: Checking linter | ||
run: npm run 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16.11 | ||
20.6.0 |
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.