Skip to content

Commit

Permalink
adding workflow + fixing eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gagoar committed Nov 17, 2020
1 parent e3e9b93 commit 1b5d515
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Validation

on: pull_request

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
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: Mocha
run: npm run test --coverage
- name: Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1b5d515

Please sign in to comment.