Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit f049526

Browse files
committed
chore: 🔧 adding commitlint to workflows (#13)
1 parent a328db6 commit f049526

3 files changed

Lines changed: 24 additions & 5 deletions

File tree

.github/workflows/lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: lint
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- run: npm i # There is a bug with npm ci -> https://github.com/npm/cli/issues/558
11+
- run: npm run lint
12+
commitlint:
13+
runs-on: ubuntu-latest
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
- uses: wagoid/commitlint-github-action@v1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: tests
1+
name: test
22
on:
33
- push
44
- pull_request
55

66
jobs:
7-
lintAndTest:
7+
test:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
@@ -13,9 +13,8 @@ jobs:
1313
with:
1414
node-version: 10.x
1515
- run: npm i # There is a bug with npm ci -> https://github.com/npm/cli/issues/558
16-
- run: npm run lint
1716
- run: npm run test:coverage
18-
- name: Coveralls
17+
- name: Upload to Coveralls
1918
uses: coverallsapp/github-action@master
2019
with:
2120
github-token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ with a focus on
1313
<img src="https://github.com/react-boilerplate/react-boilerplate-cra-template/workflows/build/badge.svg" alt="Build Status" />
1414
</a>
1515
<a href="https://github.com/react-boilerplate/react-boilerplate-cra-template/actions?query=workflow%3Atests">
16-
<img src="https://github.com/react-boilerplate/react-boilerplate-cra-template/workflows/tests/badge.svg" alt="Tests Status" />
16+
<img src="https://github.com/react-boilerplate/react-boilerplate-cra-template/workflows/test/badge.svg" alt="Tests Status" />
1717
</a>
1818
<a href="https://coveralls.io/github/react-boilerplate/react-boilerplate-cra-template">
1919
<img src="https://coveralls.io/repos/github/react-boilerplate/react-boilerplate-cra-template/badge.svg?branch=master" alt="Coverage" />

0 commit comments

Comments
 (0)