Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Iru89 committed Mar 1, 2024
1 parent bb1c412 commit 6807ac4
Show file tree
Hide file tree
Showing 30 changed files with 9,444 additions and 12,234 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/botonic-common-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ on:
required: false

jobs:
bot-tests:
botonic-tests:
name: ${{ inputs.PACKAGE_NAME }} tests
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -75,8 +75,8 @@ jobs:
role-duration-seconds: 900
role-session-name: HubtypeCITests

- name: Install dev dependencies
run: (cd ./packages/${{ inputs.PACKAGE }} && npm install -D)
- name: Install dependencies
run: npm install

- name: Build
if: ${{ inputs.BUILD_COMMAND != '' }}
Expand All @@ -95,7 +95,7 @@ jobs:
CONTENTFUL_TEST_MANAGE_TOKEN: ${{ secrets.CONTENTFUL_TEST_MANAGE_TOKEN }}

- name: Verify lint
run: (cd ./packages/${{ inputs.PACKAGE }} && npm run lint_ci)
run: (cd ./packages/${{ inputs.PACKAGE }} && npm run lint_core)

- name: Publish Unit Test Results
if: ${{ inputs.PUBLISH_TESTS_RESULTS != '' && always() }}
Expand Down
18 changes: 0 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ repos:
language: system
files: ^packages/botonic-core/

- id: core-d-ts
name: core-d-ts
entry: scripts/qa/old/lint-d-ts.sh packages/botonic-core
language: system
files: ^packages/botonic-core/src/.*\.d\.ts

- id: contentful
name: contentful
entry: scripts/qa/old/lint-package.sh packages/botonic-plugin-contentful
Expand Down Expand Up @@ -81,12 +75,6 @@ repos:
language: system
files: ^packages/botonic-react/

- id: react-d-ts
name: react-d-ts
entry: scripts/qa/old/lint-d-ts.sh packages/botonic-react
language: system
files: ^packages/botonic-react/src/.*\.d\.ts

- id: google-analytics
name: google-analytics
entry: scripts/qa/old/lint-package.sh packages/botonic-plugin-google-analytics
Expand All @@ -105,12 +93,6 @@ repos:
language: system
files: ^docs/

- id: plugin-intent-classification
name: plugin-intent-classification
entry: scripts/qa/old/lint-package.sh packages/botonic-plugin-intent-classification
language: system
files: ^packages/botonic-plugin-intent-classification/

- id: plugin-flow-builder
name: plugin-flow-builder
entry: scripts/qa/old/lint-package.sh packages/botonic-plugin-flow-builder
Expand Down
2 changes: 1 addition & 1 deletion examples/dynamic-carousel/src/actions/get-shirts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class extends React.Component {
//const res = await fetch('https://api.example.com/user')
//const user = await res.json()

const api_key = 'uid8900-40385330-57'
const api_key = 'YOUR_API_KEY' // pragma: allowlist secret
const url =
'http://api.shopstyle.com/api/v2/products?pid=' +
api_key +
Expand Down
2 changes: 1 addition & 1 deletion examples/dynamodb/src/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const plugins = [
// TODO update configuration below
env: 'dev',
accessKeyId: 'YOUR AWS ACCESS KEY HERE',
secretAccessKey: 'YOUR AWS SECRET KEY HERE',
secretAccessKey: 'YOUR AWS SECRET KEY HERE', // pragma: allowlist secret
region: 'eu-west-1',
},
},
Expand Down
4 changes: 2 additions & 2 deletions examples/intent/src/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ export const plugins = [
type: 'service_account',
project_id: 'YOUR_PROJECT_ID',
private_key_id: 'YOUR_PRIVATE_KEY_ID',
private_key: 'YOUR_PRIVATE_KEY',
private_key: 'YOUR_PRIVATE_KEY', // pragma: allowlist secret
client_email: 'YOUR_CLIENT_EMAIL',
client_id: 'CLIENT_ID',
auth_uri: 'AUTH_URI',
token_uri: 'TOKEN_URI',
auth_provider_x509_cert_url: 'AUT_PROVIDER_X509_CERT_URL',
client_x509_cert_url: 'CLIENT_X509_CERT_URL',
}
},
},
},
]

0 comments on commit 6807ac4

Please sign in to comment.