Skip to content

Commit 6eb4e28

Browse files
committed
ci(github): add lint-source workflow, rename GitHub Workflow Status badge to Lint Status
1 parent 562417c commit 6eb4e28

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.github/workflows/lint-source.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: lint-source
2+
3+
on: push
4+
5+
jobs:
6+
lint-source:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: 12
13+
registry-url: https://registry.npmjs.org
14+
- name: Install dependencies
15+
run: yarn
16+
- name: Check code style
17+
run: yarn format:check
18+
- name: Check code quality
19+
run: yarn lint

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<a href="https://github.com/boringcodes/create-package" aria-label="Prettier Code Style">
1010
<img src="https://img.shields.io/badge/code_style-prettier-brightgreen?style=flat-square">
1111
</a>
12-
<a href="https://github.com/boringcodes/create-package/actions" aria-label="GitHub Workflow Status">
13-
<img src="https://img.shields.io/github/workflow/status/boringcodes/create-package/publish-npm?style=flat-square">
12+
<a href="https://github.com/boringcodes/create-package/actions" aria-label="Lint Status">
13+
<img src="https://img.shields.io/github/workflow/status/boringcodes/create-package/lint-source?style=flat-square&label=lint">
1414
</a>
1515
<a href="https://david-dm.org/boringcodes/create-package" aria-label="Dependencies Status">
1616
<img src="https://img.shields.io/david/boringcodes/create-package?style=flat-square">
@@ -39,7 +39,6 @@
3939
- [x] TSLint (tslint-config-airbnb, tslint-immutable, tslint-sonarts)
4040
- [x] Husky
4141
- [x] Standard Version
42-
- [x] GitHub Actions
4342

4443
## Installation
4544

0 commit comments

Comments
 (0)