Skip to content

Commit

Permalink
add :neckbeard: lint to ci tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstyles committed Apr 10, 2024
1 parent c3a4536 commit f904799
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 25 deletions.
38 changes: 37 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,43 @@ jobs:
uses: actions/checkout@v4
- name: Bun setup
uses: oven-sh/setup-bun@v1
- name: Cache dependencies
id: cache
uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
node_modules
**/node_modules
!**/node_modules/.cache
key: ${{ runner.os }}-${{ runner.arch }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-bun-
- name: Install dependencies
run: bun install
- name: Build packages
run: bun run build:ci
run: bun run build:ci
lint:
runs-on: ubuntu-latest
needs: init
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Bun setup
uses: oven-sh/setup-bun@v1
- name: Cache dependencies
id: cache
uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
node_modules
**/node_modules
!**/node_modules/.cache
key: ${{ runner.os }}-${{ runner.arch }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-bun-
- name: Lint
run: bun run lint
- name: Type check
run: bun tun type:check
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"build:all": "turbo run build",
"dev": "turbo run clean && turbo run dev --parallel",
"lint": "turbo run lint",
"type:check": "turbo run type:check",
"format": "biome format --write {packages,scripts,apps}",
"scaffold": "node packages/tmpl/dist/bin/tmpl.js",
"gen": "turbo gen",
Expand Down
52 changes: 28 additions & 24 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"]
},
"lint": {
"outputs": []
},
"dev": {
"cache": false,
"persistent": true
},
"clean": {
"outputs": []
},
"test": {
"outputs": []
},
"scaffold": {
"dependsOn": ["^build"]
}
}
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"]
},
"lint": {
"outputs": []
},
"type:check": {
"dependsOn": ["^type:check"],
"outputs": []
},
"dev": {
"cache": false,
"persistent": true
},
"clean": {
"outputs": []
},
"test": {
"outputs": []
},
"scaffold": {
"dependsOn": ["^build"]
}
}
}

0 comments on commit f904799

Please sign in to comment.