Skip to content

Commit

Permalink
chore: run Lint and Test only on pull requests and pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSolati authored Jul 9, 2020
1 parent 921398a commit ee910ec
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
name: Lint and Test
on: [pull_request, push]
on:
push:
branches:
- '**'
tags-ignore:
- v*
pull_request:
branches:
- '**'
env:
COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
jobs:
Expand All @@ -20,11 +28,11 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
- name: NPM Install
run: npm install --ignore-scripts
- name: Lint
run: npm run lint
- name: Test
run: npm run test
- name: Coverage
run: npm run coverage
run: npm run coverage

0 comments on commit ee910ec

Please sign in to comment.