-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-supabase-deployment
- Loading branch information
Showing
49 changed files
with
628 additions
and
322 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: secret-scan | ||
on: pull_request | ||
|
||
|
||
jobs: | ||
secret-scan: # scan for any live secrets in the repository using trufflehog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
- name: Secret Scanning | ||
uses: trufflesecurity/trufflehog@main | ||
with: | ||
extra_args: --only-verified |
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,40 @@ | ||
# Catch all the things we ignore in the ui-test workflow | ||
name: ui-test-shim | ||
on: | ||
pull_request: | ||
paths: | ||
# catch all workflows except the ui-test | ||
- ".github/workflows/**" | ||
- "!.github/workflows/ui-test.yaml" | ||
|
||
# ignore LFAI-UI things | ||
- "!src/leapfrogai_ui/**" | ||
- "!packages/ui/**" | ||
|
||
|
||
permissions: | ||
contents: read | ||
|
||
# This is here to act as a shim for branch protection rules to work correctly. | ||
# This is ugly but this seems to be the best way to do this since: | ||
# - Job names in a workflow must be unique | ||
# - When paths are ignored not all jobs are reported to the branch protection rules | ||
# - Multiple jobs of the same name are still required by branch protection rules | ||
|
||
# For more info see below: | ||
# https://github.com/orgs/community/discussions/54877 | ||
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks | ||
|
||
# Abort prior jobs in the same workflow / PR | ||
concurrency: | ||
group: ui-test-skip-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
ui-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Skipped | ||
run: | | ||
echo skipped |
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,35 @@ | ||
name: ui-test | ||
on: | ||
pull_request: | ||
paths: | ||
# Ignore all workflows except this one | ||
- ".github/workflows/ui-test.yaml" | ||
|
||
# LFAI-UI things (no Python) | ||
- "src/leapfrogai_ui/**" | ||
- "packages/ui/**" | ||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
concurrency: | ||
group: ui-test-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ui-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | ||
with: | ||
node-version-file: 'src/leapfrogai_ui/package.json' | ||
|
||
- name: Install Dependencies | ||
run: npm --prefix src/leapfrogai_ui ci | ||
|
||
- name: Run Unit Tests | ||
run: npm --prefix src/leapfrogai_ui run test:unit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,8 @@ module.exports = { | |
parser: '@typescript-eslint/parser' | ||
} | ||
} | ||
] | ||
], | ||
rules: { | ||
'no-undef': 'off' | ||
} | ||
}; |
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 |
---|---|---|
|
@@ -3,4 +3,6 @@ pnpm-lock.yaml | |
package-lock.json | ||
yarn.lock | ||
|
||
../../packages/ui/chart/ | ||
../../packages/ui/chart/ | ||
|
||
supabase |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.