Skip to content

Commit

Permalink
Run linting on PR. (#1144)
Browse files Browse the repository at this point in the history
  • Loading branch information
dompuiu authored Jul 17, 2024
1 parent 00d6a41 commit 8d27557
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,26 @@ env:
ALLOY_ENV: int

jobs:
linting:
name: "Linting files"
runs-on: ubuntu-latest
steps:
- name: Set up Node.js version
uses: actions/setup-node@v4
with:
node-version: 22
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: npm-cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}-${{ secrets.NPM_CACHE_VERSION }} # increment NPM_CACHE_VERSION secret to force cache reset
- name: Install dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci
- name: Linting
run: npm run lint

unit-test:
name: "Unit Test"
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8d27557

Please sign in to comment.