Skip to content

Commit

Permalink
fix: turbo CI
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Aug 8, 2024
1 parent 7b7ca8c commit df70e0c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 27 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,23 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install pnpm
uses: pnpm/action-setup@v3
id: pnpm-install
uses: pnpm/action-setup@v4
with:
version: 9.7.0
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: pnpm install --frozen-lockfile --strict-peer-dependencies

- name: Run build
run: pnpm build

- name: Run test
run: pnpm run test
run: pnpm test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"release:build": "run-s build",
"release:version": "changeset version",
"release:publish": "changeset publish",
"pretest": "run-s build",
"precommit": "lint-staged",
"preinstall": "npx only-allow pnpm",
"prepare": "husky"
Expand Down
8 changes: 1 addition & 7 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@
"dependsOn": ["^clean"]
},
"test": {
"dependsOn": [
"build",
"test:format",
"test:lint",
"test:typecheck",
"test:unit"
]
"dependsOn": ["test:format", "test:lint", "test:typecheck", "test:unit"]
},
"test:lint": {
"dependsOn": ["^test:lint"],
Expand Down

0 comments on commit df70e0c

Please sign in to comment.