Skip to content

Commit

Permalink
👷 chore(ci): Add linting workflow (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception authored Sep 20, 2023
1 parent c479bd4 commit a18120a
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ CI Workflows
## [🦄 pr.yml](pr.yml)

Runs on every pull request and validates whether the PR title follows the [Gitmoji](https://gitmoji.dev/specification) and the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/#specification) specifications.

## [🎨 lint.yml](lint.yml)

Checks the code style of the project.
34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 🎨 Lint

on:
push:
branches:
- new-dawn
pull_request:

jobs:
style:
name: Check code style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8.7.6

- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
registry-url: https://registry.npmjs.org
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Check linter
run: pnpm run lint:check

- name: Check order in package.json
if: success() || failure() # Run even if linting fails
run: pnpm run sort-package-json:check
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.17.1

0 comments on commit a18120a

Please sign in to comment.