Skip to content

Create random.yaml

Create random.yaml #1

Workflow file for this run

name: Validate push
on:
push:
jobs:
testing_WarpBuild:
name: Validate Deployed Website
runs-on: warp-ubuntu-latest-arm64-4x
timeout-minutes: 40
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
shardIndex: [1, 2, 3, 4]
shardTotal: [4]
steps:
- name: Install aws
run: apt-get update && apt-get install -y awscli
# - uses: actions/checkout@v3
# with:
# submodules: recursive
# - uses: oven-sh/setup-bun@v1
# with:
# bun-version: 1.1.0
# - uses: aws-actions/configure-aws-credentials@v2
# with:
# role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
# aws-region: ${{ secrets.AWS_REGION }}
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# role-duration-seconds: 7200
# # - name: Add Public IP to Allow
# # uses: nick-fields/retry@v2.9.0
# # with:
# # timeout_seconds: 30
# # max_attempts: 5
# # command: |
# # BRANCH=${{ needs.init.outputs.branch }} ./.github/workflows/scripts/setWafIpAddress.sh
# - uses: FedericoCarboni/setup-ffmpeg@v3
# id: setup-ffmpeg
# with:
# ffmpeg-version: 6.1.0
# - name: Install dependencies
# run: bun install -D --frozen-lockfile
# working-directory: react-native
# - name: Install Playwright Browsers
# run: bunx playwright install --with-deps
# - name: Test
# run: BRANCH=${{ needs.init.outputs.branch }} bunx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
# working-directory: react-native/next
# - name: Upload report to S3
# id: upload-report
# uses: ./.github/actions/upload-s3
# if: always()
# with:
# source: react-native/next/playwright-report
# bucket: somewhere-somehow-github-artifacts
# overrideDestination: ${{ needs.init.outputs.short_sha }}/attempt-${{ github.run_attempt }}/playwright-report/${{ matrix.shardIndex }}
# - name: Upload blob to S3
# uses: ./.github/actions/upload-s3
# if: always()
# with:
# source: react-native/next/blob-report
# bucket: somewhere-somehow-github-artifacts
# overrideDestination: ${{ needs.init.outputs.short_sha }}/attempt-${{ github.run_attempt }}/blob-report
# - name: Echo Results URL
# if: always() && steps.upload-report.conclusion == 'success'
# run: echo "::notice::Artifacts hosted at ${{ steps.upload-report.outputs.url }}/index.html"