Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaosen7 committed Jul 19, 2024
1 parent 11df4d6 commit 7748c52
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 49 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy next.js-practical-cases

on:
push:

jobs:
lint:
runs-on: ubuntu-latest
env:
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Nodejs
uses: actions/[email protected]
with:
node-version: 20
- run: corepack enable pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm turbo test lint check-types
29 changes: 0 additions & 29 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,6 @@ on:
- main

jobs:
lint:
runs-on: ubuntu-latest
env:
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Nodejs
uses: actions/[email protected]
with:
node-version: 20
- run: corepack enable pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm turbo lint check-types

test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Nodejs
uses: actions/[email protected]
with:
node-version: 20
- run: corepack enable pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm turbo test

deploy:
name: Deploy Image
runs-on: ubuntu-latest
Expand Down
24 changes: 4 additions & 20 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,17 @@
"tailwind.config.*"
]
},
"check-types": {
"dependsOn": ["^check-types"]
},
"lint": {
"dependsOn": ["^lint"]
},
"test": {
"inputs": [
"app/**",
"libs/**",
"src/**",
"tsconfig.json",
"package.json",
"tests/**"
]
},
"check-types": {},
"lint": {},
"test": {},
"test:changed": {},
"dev": {
"persistent": true,
"cache": false
},
"test:watch": {
"persistent": true,
"cache": false
},
"test:changed": {
"persistent": true,
"cache": false
}
},
"remoteCache": {
Expand Down

0 comments on commit 7748c52

Please sign in to comment.