Skip to content

Commit

Permalink
GH workflows: linting, 3rd party license, and doc check (#58)
Browse files Browse the repository at this point in the history
- Added workflow for: lint check, 3rd party license update and doc update.
- Added `BOT_REPO_SCOPED_TOKEN` repo secret for the bot to properly detect changes and auto-commit to repo as part of the GH workflows.

Downgraded generate-license-file from v2 to v1 to match the version in shared workflow (output format is slightly different). I tried to migrate the workflow to latest (v3) but noticed a bug so I submitted an issue report in their repo. Once that is done, the workflow version and the local devDep version of generate-license-file can be updated

J=CLIP-100
TEST=auto

see that the workflows ran as expected as checks under this PR
  • Loading branch information
yen-tt authored Dec 6, 2023
1 parent 396f967 commit a3c1bf5
Show file tree
Hide file tree
Showing 8 changed files with 394 additions and 148 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
],
overrides: [
{
files: ["**/*.{test,stories}.*"],
files: ["**/*.{test,stories}.*", "test-site/**"],
rules: {
"react-perf/jsx-no-new-array-as-prop": "off",
"react-perf/jsx-no-new-function-as-prop": "off",
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/run-linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Run Linter

on: pull_request

jobs:
linting:
uses: yext/slapshot-reusable-workflows/.github/workflows/run-linting.yml@v1
9 changes: 9 additions & 0 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Check and Update Repo's documenation

on: pull_request

jobs:
call_update_docs:
uses: yext/slapshot-reusable-workflows/.github/workflows/update_docs.yml@v1
secrets:
REPO_SCOPED_TOKEN: ${{ secrets.BOT_REPO_SCOPED_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/update-third-party-notices.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Check and Update Third Party Notices

on: pull_request

jobs:
call_notices_check:
uses: yext/slapshot-reusable-workflows/.github/workflows/third_party_notices_check.yml@v1
secrets:
REPO_SCOPED_TOKEN: ${{ secrets.BOT_REPO_SCOPED_TOKEN }}
Loading

0 comments on commit a3c1bf5

Please sign in to comment.