Skip to content

Commit

Permalink
Merge pull request #3 from jhancock532/Add-lint-step-to-CI
Browse files Browse the repository at this point in the history
Add linting GitHub Action
  • Loading branch information
jhancock532 authored Aug 8, 2024
2 parents f1a4ccb + 441a440 commit 706fb6a
Show file tree
Hide file tree
Showing 26 changed files with 1,515 additions and 443 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
run-linting:
name: Run linting
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Install Node.js dependencies
run: npm ci
- name: Run linters
run: npm run lint
8 changes: 7 additions & 1 deletion .github/workflows/storybook-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: 'Storybook Tests'
on: push
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
timeout-minutes: 60
Expand Down
9 changes: 9 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["stylelint-config-standard-scss", "stylelint-config-css-modules"],
"rules": {
"selector-max-id": 0,
"custom-property-pattern": null,
"selector-class-pattern": null,
"color-hex-length": "long"
}
}
Loading

0 comments on commit 706fb6a

Please sign in to comment.