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 committed Jul 11, 2020
1 parent 8421b86 commit 34fe48a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/lint-and-test.yml
@@ -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,13 +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: Build
run: npm run build
- name: Coverage
run: npm run coverage
run: npm run coverage

0 comments on commit 34fe48a

Please sign in to comment.