-
Notifications
You must be signed in to change notification settings - Fork 887
ci: fmt, lint and build offlinedocs #8642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This allows linting offlinedocs with `make lint` and `make lint/ts`
make lint/ts
make lint/ts
make lint/ts
make lint/ts
make lint/ts
make lint/ts
make lint/ts
make lint/ts
and make fmt
make lint/ts
and make fmt
make lint/ts
and make fmt
make lint/ts
and make fmt
@@ -35,6 +35,8 @@ jobs: | |||
ts: ${{ steps.filter.outputs.ts }} | |||
k8s: ${{ steps.filter.outputs.k8s }} | |||
ci: ${{ steps.filter.outputs.ci }} | |||
offlinedocs-only: ${{ steps.filter.outputs.offlinedocs_count == steps.filter.outputs.all_count }} | |||
offlinedocs: ${{ steps.filter.outputs.offlinedocs }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will skip lint and format when we only target offlinedocs.
lint and fmt checks do not check offline docs so this was useless here
.github/workflows/ci.yaml
Outdated
- name: Build | ||
run: | | ||
version="$(./scripts/version.sh)" | ||
yarn global add prettier # Install prettier before running the script |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this line necessary? You already install it globally above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no. It was left out.
Co-authored-by: Dean Sheather <dean@deansheather.com>
fmt, lint and build offlinedocs.