Skip to content
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

Set up CI to lint workflows with action-validator #26

Merged
merged 3 commits into from
Nov 24, 2023

Conversation

Johennes
Copy link
Contributor

This is the equivalent of element-hq/element-web#26621 applied to this repository.

@Johennes Johennes requested a review from a team as a code owner November 22, 2023 15:35
@Johennes Johennes enabled auto-merge (squash) November 22, 2023 16:16
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks plausible

@@ -9,44 +9,60 @@ jobs:
# ================================================

eslint:
name: "ESLint (Node ${{ matrix.node }})"
name: "ESLint (Node ${{ matrix.node == '*' && 'latest' || matrix.node }})"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"*" is not the same as latest, as I understand it. (If it was, we wouldn't need to change this.) IMHO * here would be better here: whilst not terribly clear for those who don't know what it means, it is at least not actively misleading.

"lint": "eslint src test && tsc --noEmit && prettier --check .",
"lint:fix": "prettier --write . && eslint --fix src test",
"lint": "yarn lint:js && yarn lint:workflows",
"lint:js": "eslint src test && tsc --noEmit && prettier --check .",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not loving that we have a lint:js that does something different to the lint:js in element-web (notably: it runs tsc), but I also don't feel very strongly about it.

@Johennes Johennes merged commit 4cb5908 into main Nov 24, 2023
7 checks passed
@Johennes Johennes deleted the johannes/action-validator branch November 24, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants