diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 13f41bb..926a5b1 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b3938d1 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 + \ No newline at end of file diff --git a/TODO.md b/TODO.md index a52d12c..7a23f87 100644 --- a/TODO.md +++ b/TODO.md @@ -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 \ No newline at end of file