5
0
Fork 0
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:
Wagner Santos 2021-02-15 06:55:20 -03:00
parent 51913c302c
commit 574a6716ee

View file

@ -2,8 +2,8 @@ name: CI
on: [push] on: [push]
jobs: jobs:
test: sanity-checks:
name: Test name: Sanity Checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -19,9 +19,10 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-node- ${{ runner.os }}-node-
- run: npm install - run: npm install
- run: npm run lint
- run: npm test -- --ci --coverage - run: npm test -- --ci --coverage
release: release:
needs: test needs: sanity-checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "github.ref == 'refs/heads/master' && !contains(toJSON(github.event.commits.*.message), '[skip-ci]')" if: "github.ref == 'refs/heads/master' && !contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
env: env: