Add: connector for bigquery #631
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
name: Check apps registry | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
check-changes: | |
runs-on: ubuntu-latest | |
outputs: | |
file_changed: ${{ steps.check_modified.outputs.file_changed }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check if file was modified | |
id: check_modified | |
run: | | |
set +eo pipefail | |
git diff --name-only origin/main HEAD | grep -q "front/lib/registry.ts" | |
if [ $? -eq 0 ]; then | |
echo "file_changed=true" >> $GITHUB_OUTPUT | |
else | |
echo "file_changed=false" >> $GITHUB_OUTPUT | |
fi | |
validate: | |
needs: check-changes | |
runs-on: ubuntu-latest | |
if: | | |
needs.check-changes.outputs.file_changed == 'true' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup validation environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.13.0 | |
cache: "npm" | |
cache-dependency-path: ./front/package-lock.json | |
- name: Build types | |
working-directory: types | |
run: npm install && npm run build | |
- name: Build sdks/js | |
working-directory: sdks/js | |
run: npm install && npm run build | |
- name: Run validation | |
id: validate | |
working-directory: front | |
run: | | |
set -eo pipefail | |
npm install | |
npx tsx ./admin/check_registry_apps.ts --execute --url https://dust.tt --wId 78bda07b39 --spaceId vlt_rICtlrSEpWqX --apiKey ${{ secrets.DUST_APPS_US_API_KEY }} | |
npx tsx ./admin/check_registry_apps.ts --execute --url https://eu.dust.tt --wId W1YzXC9nhN --spaceId vlt_p5kel5XkwVqEnpKcdXzC --apiKey ${{ secrets.DUST_APPS_EU_API_KEY }} |