remove tile interactions #209
Workflow file for this run
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
| name: "Validate jetstream" | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'jetstream/**' | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'jetstream/**' | |
| jobs: | |
| changed: | |
| uses: ./.github/workflows/changed-files.yml | |
| with: | |
| path_filter: | | |
| jetstream/**/*.toml | |
| jetstream/**/*.toml.example | |
| validate-jetstream: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: gcr.io/moz-fx-data-experiments/jetstream:latest | |
| needs: changed | |
| permissions: | |
| contents: read | |
| id-token: write | |
| pull-requests: write | |
| if: needs.changed.outputs.any_changed == 'true' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| - name: Set safe directory | |
| # workaround because actions/checkout's `set-safe-directory` flag doesn't work in containers | |
| # this and `ref` above are needed because jetstream performs git operations | |
| run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - name: Authenticate to GCP | |
| uses: google-github-actions/auth@v2 | |
| id: auth | |
| with: | |
| workload_identity_provider: ${{ vars.GCPV2_GITHUB_WORKLOAD_IDENTITY_PROVIDER }} | |
| service_account: ${{ secrets.GCP_DRYRUN_SERVICE_ACCOUNT_EMAIL }} | |
| token_format: id_token | |
| id_token_audience: https://us-central1-moz-fx-data-shared-prod.cloudfunctions.net/bigquery-etl-dryrun | |
| id_token_include_email: true | |
| - name: Export ID Token for Python | |
| env: | |
| GOOGLE_GHA_ID_TOKEN: ${{ steps.auth.outputs.id_token }} | |
| run: echo "GOOGLE_GHA_ID_TOKEN=$GOOGLE_GHA_ID_TOKEN" >> $GITHUB_ENV | |
| - name: Validate jetstream config files | |
| env: | |
| ALL_CHANGED_FILES: ${{ needs.changed.outputs.all_changed_files }} | |
| run: | | |
| echo "Run validation on changed files: " | |
| echo $ALL_CHANGED_FILES | |
| echo "jetstream validate_config --config_repos='.' --config_repos=jetstream/ $ALL_CHANGED_FILES" | |
| jetstream validate_config --config_repos='.' --config_repos=jetstream/ $ALL_CHANGED_FILES | |
| - uses: actions/github-script@v6 | |
| if: ${{ github.event_name == 'pull_request' && success() }} | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| body: "✅ Jetstream Validation is complete. Check the CI logs for this step for **Query SQL** and **data processing estimates**." | |
| }) | |