Skip to content

Commit

Permalink
Add linting workflow (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 authored Jan 23, 2025
1 parent 87a7b6e commit 479eaa6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: "Run Linters and Typechecking"
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
jobs:
test:
name: "Run Linters and Typechecking"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- uses: "authzed/action-spicedb@v1"
with:
version: "latest"
- uses: "actions/setup-node@v4"
with:
node-version: 22
cache-dependency-path: "yarn.lock"
cache: "yarn"
- uses: "bahmutov/npm-install@v1"
- name: "Run Eslint"
run: "yarn run lint"
- name: "Run Typescript type checking"
run: "yarn run tsc -b"

0 comments on commit 479eaa6

Please sign in to comment.