-
Notifications
You must be signed in to change notification settings - Fork 274
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
1 changed file
with
5 additions
and
19 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 |
---|---|---|
@@ -1,25 +1,9 @@ | ||
name: Validation | ||
name: Lint and Tests | ||
|
||
on: push | ||
|
||
jobs: | ||
lint: | ||
name: Linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Use Node.js 12.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: Install dependencies | ||
run: | | ||
npm install | ||
- name: ESLint | ||
run: npm run lint | ||
|
||
test: | ||
name: Run unit tests | ||
validation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
@@ -30,7 +14,9 @@ jobs: | |
- uses: bahmutov/[email protected] | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Mocha | ||
- name: Lint | ||
run: npm run lint | ||
- name: Tests | ||
run: npm run test:only | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
|