mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 08:06:54 +00:00
ci: add eslint check to CI workflow
This commit is contained in:
parent
51913c302c
commit
574a6716ee
1 changed files with 4 additions and 3 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
|
@ -2,8 +2,8 @@ name: CI
|
|||
on: [push]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
sanity-checks:
|
||||
name: Sanity Checks
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
@ -19,9 +19,10 @@ jobs:
|
|||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
- run: npm install
|
||||
- run: npm run lint
|
||||
- run: npm test -- --ci --coverage
|
||||
release:
|
||||
needs: test
|
||||
needs: sanity-checks
|
||||
runs-on: ubuntu-latest
|
||||
if: "github.ref == 'refs/heads/master' && !contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
|
||||
env:
|
||||
|
|
|
|||
Loading…
Reference in a new issue