diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000000..92bd33894e
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,9 @@
+packages/server/node_modules
+packages/builder
+packages/frontend-core
+packages/backend-core
+packages/worker/node_modules
+packages/cli
+packages/client
+packages/bbui
+packages/string-templates
diff --git a/.eslintrc.json b/.eslintrc.json
index 4dc11c0d65..87f8269c50 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -24,9 +24,28 @@
{
"files": ["*.svelte"],
"processor": "svelte3/svelte3"
+ },
+ {
+ "files": ["**/*.ts"],
+ "parser": "@typescript-eslint/parser",
+ "plugins": [],
+ "extends": [
+ "eslint:recommended"
+ ],
+ "rules": {
+ "no-unused-vars": "off",
+ "no-inner-declarations": "off",
+ "no-case-declarations": "off",
+ "no-useless-escape": "off",
+ "no-undef": "off",
+ "no-prototype-builtins": "off"
+ }
}
],
"rules": {
"no-self-assign": "off"
+ },
+ "globals": {
+ "GeolocationPositionError": true
}
}
diff --git a/.github/workflows/smoke_test.yaml b/.github/workflows/smoke_test.yaml
index 745fed1306..b26d0386fc 100644
--- a/.github/workflows/smoke_test.yaml
+++ b/.github/workflows/smoke_test.yaml
@@ -2,6 +2,8 @@ name: Budibase Smoke Test
on:
workflow_dispatch:
+ schedule:
+ - cron: "0 5 * * *" # every day at 5AM
jobs:
release:
@@ -23,10 +25,14 @@ jobs:
-o packages/builder/cypress.env.json \
-L https://api.github.com/repos/budibase/budibase-infra/contents/test/cypress.env.json
wc -l packages/builder/cypress.env.json
- - run: yarn test:e2e:ci
- env:
- CI: true
- name: Budibase CI
+
+ - name: Cypress run
+ id: cypress
+ continue-on-error: true
+ uses: cypress-io/github-action@v2
+ with:
+ install: false
+ command: yarn test:e2e:ci
# TODO: upload recordings to s3
# - name: Configure AWS Credentials
@@ -36,11 +42,11 @@ jobs:
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: eu-west-1
- # TODO look at cypress reporters
- # - name: Discord Webhook Action
- # uses: tsickert/discord-webhook@v4.0.0
- # with:
- # webhook-url: ${{ secrets.PROD_DEPLOY_WEBHOOK_URL }}
- # content: "Production Deployment Complete: ${{ env.RELEASE_VERSION }} deployed to Budibase Cloud."
- # embed-title: ${{ env.RELEASE_VERSION }}
+ - name: Discord Webhook Action
+ uses: tsickert/discord-webhook@v4.0.0
+ with:
+ webhook-url: ${{ secrets.BUDI_QA_WEBHOOK }}
+ content: "Smoke test run completed with ${{ steps.cypress.outcome }}. See results at ${{ steps.cypress.dashboardUrl }}"
+ embed-title: ${{ steps.cypress.outcome }}
+ embed-color: ${{ steps.cypress.outcome == 'success' && '3066993' || '15548997' }}
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 34951b6310..8cb49d5825 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -22,9 +22,16 @@
"name": "Budibase Worker",
"type": "node",
"request": "launch",
- "program": "${workspaceFolder}/packages/worker/src/index.js",
+ "runtimeArgs": [
+ "--nolazy",
+ "-r",
+ "ts-node/register/transpile-only"
+ ],
+ "args": [
+ "${workspaceFolder}/packages/worker/src/index.ts"
+ ],
"cwd": "${workspaceFolder}/packages/worker"
- }
+ },
],
"compounds": [
{
diff --git a/README.md b/README.md
index 6296862a4c..17a3ab1ef2 100644
--- a/README.md
+++ b/README.md
@@ -102,15 +102,19 @@ Budibase is made to scale. With Budibase, you can self-host on your own infrastr
- Checkout the promo video: https://youtu.be/xoljVpty_Kw
-
+
-### Extend Budibase with its Public API
+---
+
+
+
+
+## Budibase Public API
As with anything that we build in Budibase, our new public API is simple to use, flexible, and introduces new extensibility. To summarize, the Budibase API enables:
- Budibase as a backend
-- Inter-operability
+- Interoperability
-Guide: [Build an app with Budibase and Next.js](https://budibase.com/blog/building-a-crud-app-with-budibase-and-next.js/)
#### Docs
You can learn more about the Budibase API at the following places:
@@ -118,6 +122,10 @@ You can learn more about the Budibase API at the following places:
- [General documentation](https://docs.budibase.com/docs/public-api) : Learn how to get your API key, how to use spec, and how to use with Postman
- [Interactive API documentation](https://docs.budibase.com/reference/post_applications) : Learn how to interact with the API
+#### Guides
+
+- [Build an app with Budibase and Next.js](https://budibase.com/blog/building-a-crud-app-with-budibase-and-next.js/)
+