Skip to content

Commit

Permalink
introduce checks #4 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenstrahl authored Aug 5, 2024
1 parent 4e357cd commit 05fb245
Show file tree
Hide file tree
Showing 6 changed files with 1,713 additions and 3,407 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: linting

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: npm install
- name: Run linting
run: npm run lint;
16 changes: 16 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: unit-tests

on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: npm install
- name: Run tests
run: npm run test:ci
3 changes: 3 additions & 0 deletions apps/cms/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@sanity/eslint-config-studio",
}
11 changes: 8 additions & 3 deletions apps/cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,26 @@
"start": "sanity start",
"build": "sanity build public -y",
"publish": "sanity deploy",
"typegen": "sanity schema extract && sanity typegen generate"
"typegen": "sanity schema extract && sanity typegen generate",
"lint": "eslint --fix"
},
"keywords": [
"sanity"
],
"dependencies": {
"@sanity/vision": "^3.49.0",
"sanity": "3.49.0",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
"sanity": "3.49.0",
"styled-components": "^6.1.11"
},
"devDependencies": {
"@sanity/cli": "^3.49.0"
"@sanity/cli": "^3.49.0",
"@sanity/eslint-config-studio": "^4.0.0",
"eslint": "^8.57.0",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
}
}
Loading

0 comments on commit 05fb245

Please sign in to comment.