forked from y-scope/yscope-log-viewer
-
Notifications
You must be signed in to change notification settings - Fork 1
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
gh-action-test #5
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
9bc3ab2
Add GitHub Actions workflow for linting.
junhaoliao a0065e3
gh-action-test: violation 1.
junhaoliao 44082e7
gh-action-test: violation 2.
junhaoliao 15c4c96
gh-action-test: violation 3.
junhaoliao 78b0d0c
gh-action-test: violation 4.
junhaoliao 43108c8
Use ataylorme/eslint-annotate-action@v3 for lint annotation instead.
junhaoliao 5f31719
Merge branch 'main' into gh-action-test
junhaoliao 8731db7
continue-on-error on eslint report
junhaoliao d488099
Merge branch 'main' into gh-action-test
junhaoliao 9b3e77c
Use ataylorme/eslint-annotate-action@v3 for lint annotation instead.
junhaoliao a8cada1
continue-on-error on eslint report
junhaoliao 15c635c
Apply suggestions from code review
junhaoliao 26556bd
Merge branch 'gh-action'
junhaoliao a342e1e
Remove permissions contents: "read" and pull-requests: "write".
junhaoliao a32c35a
Merge branch 'main' into gh-action-test
junhaoliao 1b9f3e9
Add back permissions contents: "read".
junhaoliao 8081398
Add checks: "write" permission.
junhaoliao 8a0e445
Merge branch 'main' into gh-action-test
junhaoliao 1c81b9d
Pull out workerPostReq() from <StateContextProvider/> FC body.
junhaoliao 5fd8fc7
Suppress warnings for long-term TODO comments.
junhaoliao 26cc596
Output eslint report as `eslint-report.json` instead of `eslint_repor…
junhaoliao 347b421
Move 'checks: "write"' and 'contents: "read"' permissions to the job …
junhaoliao 8219025
Merge branch 'gh-action' into gh-action-test
junhaoliao 0726e59
make violation
junhaoliao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: "lint" | ||
|
||
on: | ||
pull_request: | ||
types: ["opened", "reopened"] | ||
push: | ||
schedule: | ||
# Run at midnight UTC every day with 15 minutes delay added to avoid high load periods | ||
- cron: "15 0 * * *" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
# So the workflow can cancel in-progress jobs | ||
actions: "write" | ||
|
||
concurrency: | ||
group: "${{github.workflow}}-${{github.ref}}" | ||
# Cancel in-progress jobs for efficiency | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint-check: | ||
runs-on: "ubuntu-latest" | ||
permissions: | ||
# So `eslint-annotate-action` can create / update status checks | ||
checks: "write" | ||
# So `eslint-annotate-action` can get pull request files | ||
contents: "read" | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
with: | ||
submodules: "recursive" | ||
- uses: "actions/setup-node@v4" | ||
with: | ||
node-version: 22 | ||
- run: "npm --prefix new-log-viewer/ clean-install" | ||
- run: "npm --prefix new-log-viewer/ run lint:ci" | ||
continue-on-error: true | ||
- uses: "ataylorme/eslint-annotate-action@v3" | ||
with: | ||
fail-on-error: true | ||
fail-on-warning: true | ||
only-pr-files: true | ||
report-json: "./new-log-viewer/eslint-report.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Unexpected 'todo' comment: 'TODO: violation 1'. no-warning-comments