Skip to content

Commit

Permalink
Create lint.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmadigan authored Oct 18, 2024
1 parent 24e90a5 commit 493ae2d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint Check

on:
# pull_request:
# branches:
# - '**'
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'

- name: Install dependencies
run: yarn install

- name: Run lint
run: yarn lint

- name: Check for changes
run: |
if [[ $(git status --porcelain) ]]; then
echo "Linting caused changes, failing the build."
exit 1
else
echo "No changes detected."
fi

0 comments on commit 493ae2d

Please sign in to comment.