Skip to content

Commit

Permalink
feat: add github action to check lint (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Notekunn authored Nov 6, 2022
1 parent 1e741ba commit 1f5c5f9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
check:
name: Validate PR title
name: Validate PR Title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name:

on:
push:
branches:
- '**'
- '!main'

jobs:
lint:
name: Run linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4

- uses: actions/setup-node@v2.1.5
with:
node-version: '16'

- name: Install package
run: yarn

- name: Check lint
run: yarn lint

2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- [x] Add commit lint
- [x] Add husky
- [x] Add lint staged
- [ ] Add github CI-CD for lint
- [x] Add github CI-CD for lint
- [ ] Setup semantic release
- [ ] Update readme
- [ ] Add hygen

0 comments on commit 1f5c5f9

Please sign in to comment.