Skip to content

Make CLI up-to-date #4312

Make CLI up-to-date

Make CLI up-to-date #4312

Workflow file for this run

# this workflow will run on every pr to make sure the project is following the guidelines
# after labeler, run other actions with strict permissions
name: CI
on:
pull_request:
branches: ["*"]
merge_group:
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
jobs:
lint:
runs-on: ubuntu-latest
name: Run ESLint
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- run: pnpm turbo run lint
- run: pnpm manypkg check
check-changeset:
runs-on: ubuntu-latest
name: Check Changeset
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- name: Check and Validate Changes in /cli
run: |
git fetch origin main:main
changes=$(git diff --name-only main...${{ github.sha }} | grep '^cli/' || true)
if [[ -n "$changes" ]]; then
echo "Changes detected in /cli: $changes"
pnpm changeset status --since origin/main
exit_status=$?
if [[ $exit_status -eq 0 ]]; then
echo "Changeset validation succeeded."
else
echo "Changeset validation failed."
fi
else
echo "No changes detected in /cli"
fi
prettier:
runs-on: ubuntu-latest
name: Run Prettier
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- run: pnpm format:check
tsc:
runs-on: ubuntu-latest
name: Run Typechecker
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- run: pnpm typecheck
build-www:
runs-on: ubuntu-latest
name: Build and Check Astro
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- run: pnpm run --filter=www check
- run: pnpm turbo --filter=www build
# env:
# PUBLIC_GITHUB_TOKEN: ${{ secrets.PUBLIC_GITHUB_TOKEN }}