feat(history-queries): hide filters length in predictive #94
Workflow file for this run
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: PR Validate & Preview | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# These permissions are needed to interact with GitHub's OIDC Token endpoint. | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Install deps, build and test project | |
uses: ./.github/actions/install | |
- name: Deploy PR Preview | |
uses: ./.github/actions/deploy | |
with: | |
aws_role: ${{ secrets.AWS_ROLE_TEST_ACCOUNT }} | |
aws_deploy_path: ${{ secrets.AWS_TEST_BUCKET }}/preview/${{ github.event.number }} | |
aws_s3_sync_args: --include '*' --exclude '*/*' | |
aws_s3_cache: no-store | |
cloudfront_distribution_id: ${{ secrets.CLOUDFRONT_ID_TEST }} | |
cloudfront_invalidation_paths: '/preview/${{ github.event.number }}/*' | |
- name: Adding comment to PR with preview link and validation results | |
uses: actions/github-script@v5 | |
with: | |
github-token: ${{ secrets.SUPPORT_TOKEN }} | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `Check **PR ${{ github.event.number }}** preview 👀 <br> <br> [https://x.test.empathy.co/preview/${{ github.event.number }}/index.html](https://x.test.empathy.co/preview/${{ github.event.number }}/index.html) ` | |
}) |