Skip to content

Commit

Permalink
setup linting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
antoKeinanen committed Mar 9, 2024
1 parent a0cb7c9 commit 2206d79
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI Workflow

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.15.4

- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: |
~/.pnpm-store
**/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies with pnpm
run: pnpm install

- name: Run lint script
run: pnpm run lint
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"lint": "tsc --noEmit && eslint --ext .ts,.tsx,.js,.jsx src",
"format": "prettier --write src"
},
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@cortex-js/compute-engine": "^0.24.1",
"@radix-ui/react-slot": "^1.0.2",
Expand Down

0 comments on commit 2206d79

Please sign in to comment.