Skip to content

Commit 5cf919e

Browse files
committed
chore: update ci
1 parent aa61ec3 commit 5cf919e

1 file changed

Lines changed: 11 additions & 21 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,14 @@ jobs:
3838
- name: Install dependencies
3939
run: pnpm install --frozen-lockfile
4040

41-
- name: Get turbo filter
42-
id: get-turbo-filter
43-
run: |
44-
if [ "${{ github.event_name }}" == "pull_request" ]; then
45-
TURBO_FILTER="--filter=...[origin/${{ github.base_ref }}]"
46-
echo "This is a pull request event. Setting turbo filter to '$TURBO_FILTER'"
47-
elif [ "${{ github.event_name }}" == "push" ]; then
48-
TURBO_FILTER="--filter=...[${{ github.event.before }}]"
49-
echo "This is a push event. Setting turbo filter to '$TURBO_FILTER'"
50-
else
51-
echo "Unsupported event '${{ github.event_name }}' detected. Exiting."
52-
exit 1
53-
fi
54-
55-
echo "TURBO_FILTER=$TURBO_FILTER" >> $GITHUB_OUTPUT
56-
57-
- name: Codegen
58-
run: pnpm codegen
59-
60-
- name: Run all
61-
run: pnpm turbo typecheck format:check lint test ${{ steps.get-turbo-filter.outputs.TURBO_FILTER }}
41+
- name: Run typecheck
42+
run: pnpm turbo typecheck
43+
44+
- name: Run format:check
45+
run: pnpm turbo format:check
46+
47+
- name: Run lint
48+
run: pnpm turbo lint
49+
50+
- name: Run tests
51+
run: pnpm turbo test

0 commit comments

Comments
 (0)