Skip to content

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

Merged
merged 43 commits into from
Jul 24, 2023
Merged

ci: fmt, lint and build offlinedocs #8642

merged 43 commits into from
Jul 24, 2023

Conversation

matifali
Copy link
Member

@matifali matifali commented Jul 21, 2023

fmt, lint and build offlinedocs.

This allows linting offlinedocs with `make lint` and `make lint/ts`
@matifali matifali changed the title build: lint offlinedocs with make lint/ts dev: lint offlinedocs with make lint/ts Jul 21, 2023
@matifali matifali changed the title dev: lint offlinedocs with make lint/ts feat: lint offlinedocs with make lint/ts Jul 21, 2023
@matifali matifali changed the title feat: lint offlinedocs with make lint/ts ci: lint offlinedocs with make lint/ts Jul 21, 2023
@matifali matifali enabled auto-merge (squash) July 21, 2023 05:30
@matifali matifali changed the title ci: lint offlinedocs with make lint/ts ci: fmt lint offlinedocs with make lint/ts and make fmt Jul 21, 2023
@matifali matifali requested a review from deansheather July 21, 2023 06:01
@matifali matifali disabled auto-merge July 21, 2023 06:01
deansheather
deansheather previously approved these changes Jul 21, 2023
@matifali matifali changed the title ci: fmt lint offlinedocs with make lint/ts and make fmt ci: fmt and lint offlinedocs with make lint/ts and make fmt Jul 21, 2023
@matifali matifali changed the title ci: fmt and lint offlinedocs with make lint/ts and make fmt ci: add a separate workflow to check fmt, lint and build offlinedocs Jul 24, 2023
@matifali matifali requested a review from deansheather July 24, 2023 06:58
@matifali matifali requested a review from deansheather July 24, 2023 09:40
@@ -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 }}
Copy link
Member Author

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

- name: Build
run: |
version="$(./scripts/version.sh)"
yarn global add prettier # Install prettier before running the script
Copy link
Member

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

Copy link
Member Author

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.

matifali and others added 2 commits July 24, 2023 13:16
Co-authored-by: Dean Sheather <dean@deansheather.com>
@matifali matifali enabled auto-merge (squash) July 24, 2023 10:22
@matifali matifali disabled auto-merge July 24, 2023 10:38
@matifali matifali enabled auto-merge (squash) July 24, 2023 10:39
@matifali matifali merged commit 757ea68 into main Jul 24, 2023
@matifali matifali deleted the matifali/lint-offlinedocs branch July 24, 2023 10:54
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants