Skip to content

Commit

Permalink
inertia - typescript and eslint gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dcordz committed Aug 26, 2024
1 parent 3f67ec1 commit 8b8c06f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ESLint
on: [push]
jobs:
eslint:
runs-on: depot-ubuntu-latest

env:
RAILS_ENV: test

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

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.17.0"
cache: "npm"

- name: Install JS dependencies
run: npm install --legacy-peer-deps

- name: Run Linter
run: npx eslint -c eslint.config.js .
24 changes: 24 additions & 0 deletions .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Typescript
on: [push]
jobs:
tsc:
runs-on: depot-ubuntu-latest

env:
RAILS_ENV: test

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

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.17.0"
cache: "npm"

- name: Install JS dependencies
run: npm install --legacy-peer-deps

- name: Run Typescript tsc
run: npx tsc --project tsconfig.json

0 comments on commit 8b8c06f

Please sign in to comment.