Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 chore(ci): Add linting workflow #886

Merged
merged 1 commit into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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