adding fake field to test all github actions #3
This file contains hidden or 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
|
Check failure on line 1 in .github/workflows/lightdash-deploy.yml
|
||
| name: deploy-lightdash | ||
| on: | ||
| push: | ||
| branches: [ "main", "master" ] | ||
| env: | ||
| DBT_VERSION: "1.9.0" | ||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/[email protected] | ||
| - uses: actions/setup-python@v1 | ||
| with: | ||
| python-version: "3.9.x" | ||
| - name: Copy Google credentials file | ||
| env: | ||
| GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | ||
| if: "${{ env.GOOGLE_CREDENTIALS != '' }}" | ||
| id: create-json | ||
| uses: jsdaniell/[email protected] | ||
| with: | ||
| name: "googlecredentials.json" | ||
| json: ${{ env.GOOGLE_CREDENTIALS }} | ||
| - name: Move credentials to /tmp | ||
| run: mv googlecredentials.json /tmp || true | ||
| - name: Locate dbt_project.yml | ||
| run: echo "PROJECT_DIR=$(find . -name "dbt_project.yml" | sed 's/dbt_project.yml//g')" >> $GITHUB_ENV | ||
| - name: Get lightdash version | ||
| uses: sergeysova/jq-action@v2 | ||
| id: version | ||
| env: | ||
| LIGHTDASH_URL: ${{ secrets.LIGHTDASH_URL }} | ||
| with: | ||
| cmd: curl -s "${LIGHTDASH_URL}/api/v1/health" | jq -r '.results.version' | ||
| - name: Copy profiles.yml | ||
| env: | ||
| config: ${{ secrets.DBT_PROFILES }} | ||
| run: echo -e "$config" > profiles.yml | ||
| - name: Install dbt | ||
| run: | | ||
| name: deploy-lightdash | ||
| on: | ||
| push: | ||
| branches: [ "main", "master" ] | ||
| env: | ||
| DBT_VERSION: "1.7.10" | ||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/[email protected] | ||
| - uses: actions/setup-python@v1 | ||
| with: | ||
| python-version: "3.9.x" | ||
| - name: Copy Google credentials file | ||
| env: | ||
| GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | ||
| if: "${{ env.GOOGLE_CREDENTIALS != '' }}" | ||
| id: create-json | ||
| uses: jsdaniell/[email protected] | ||
| with: | ||
| name: "googlecredentials.json" | ||
| json: ${{ env.GOOGLE_CREDENTIALS }} | ||
| - name: Move credentials to /tmp | ||
| run: mv googlecredentials.json /tmp || true | ||
| - name: Locate dbt_project.yml | ||
| run: echo "PROJECT_DIR=$(find . -name "dbt_project.yml" | sed 's/dbt_project.yml//g')" >> $GITHUB_ENV | ||
| - name: Get lightdash version | ||
| uses: sergeysova/jq-action@v2 | ||
| id: version | ||
| env: | ||
| LIGHTDASH_URL: ${{ secrets.LIGHTDASH_URL }} | ||
| with: | ||
| cmd: curl -s "${LIGHTDASH_URL}/api/v1/health" | jq -r '.results.version' | ||
| - name: Copy profiles.yml | ||
| env: | ||
| config: ${{ secrets.DBT_PROFILES }} | ||
| run: echo -e "$config" > profiles.yml | ||
| - name: Install dbt | ||
| run: | | ||
| pip install dbt-core==$DBT_VERSION dbt-bigquery==$DBT_VERSION | ||
| dbt deps --project-dir "$PROJECT_DIR" | ||
| - name: Install lightdash CLI | ||
| run: npm install -g "@lightdash/cli@${{ steps.version.outputs.value }}" || npm install -g @lightdash/cli@latest | ||
| - name: Lightdash CLI deploy | ||
| env: | ||
| LIGHTDASH_API_KEY: ${{ secrets.LIGHTDASH_API_KEY }} | ||
| LIGHTDASH_PROJECT: ${{ secrets.LIGHTDASH_PROJECT }} | ||
| LIGHTDASH_URL: ${{ secrets.LIGHTDASH_URL }} | ||
| GOOGLE_APPLICATION_CREDENTIALS: '/tmp/googlecredentials.json' | ||
| run: lightdash deploy --project-dir "$PROJECT_DIR" --profiles-dir . --profile prod || lightdash deploy --project-dir "$PROJECT_DIR" --profiles-dir . | ||
| - name: Install lightdash CLI | ||
| run: npm install -g "@lightdash/cli@${{ steps.version.outputs.value }}" || npm install -g @lightdash/cli@latest | ||
| - name: Lightdash CLI deploy | ||
| env: | ||
| LIGHTDASH_API_KEY: ${{ secrets.LIGHTDASH_API_KEY }} | ||
| LIGHTDASH_PROJECT: ${{ secrets.LIGHTDASH_PROJECT }} | ||
| LIGHTDASH_URL: ${{ secrets.LIGHTDASH_URL }} | ||
| GOOGLE_APPLICATION_CREDENTIALS: '/tmp/googlecredentials.json' | ||
| run: lightdash deploy --project-dir "$PROJECT_DIR" --profiles-dir . --profile prod || lightdash deploy --project-dir "$PROJECT_DIR" --profiles-dir . | ||