Skip to content

Commit

Permalink
Simplifying jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
gagoar committed Nov 25, 2020
1 parent 8c37cb9 commit 8eb6d79
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/validation.yml
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
Expand All @@ -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
Expand Down

0 comments on commit 8eb6d79

Please sign in to comment.