Store Android benchmark results on S3 (#2301)
This commit is contained in:
@@ -43,6 +43,9 @@ inputs:
|
||||
testSpecArn:
|
||||
description: "ARN of test spec"
|
||||
required: false
|
||||
outputs:
|
||||
runArn:
|
||||
description: ARN of run
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
@@ -107,6 +110,7 @@ runs:
|
||||
done
|
||||
|
||||
- name: Schedule test run
|
||||
id: schedule_run
|
||||
shell: bash
|
||||
run: |
|
||||
arn="$(aws devicefarm schedule-run \
|
||||
@@ -118,6 +122,8 @@ runs:
|
||||
${{ inputs.externalData && '--configuration extraDataPackageArn=' }}${{ inputs.externalData }} \
|
||||
--output text --query "run.arn")"
|
||||
|
||||
echo "runArn=$arn" >> "$GITHUB_OUTPUT"
|
||||
|
||||
# wait until result is not PENDING
|
||||
# https://awscli.amazonaws.com/v2/documentation/api/latest/reference/devicefarm/get-run.html#output
|
||||
while true; do
|
||||
|
||||
6
.github/workflows/android-device-test.yml
vendored
6
.github/workflows/android-device-test.yml
vendored
@@ -110,6 +110,7 @@ jobs:
|
||||
echo external_data_arn="$upload_arn" >> "$GITHUB_ENV"
|
||||
|
||||
- uses: ./.github/actions/aws-device-farm-run
|
||||
id: aws_device_farm_run
|
||||
if: env.run_device_test == 'true'
|
||||
with:
|
||||
name: ${{ matrix.test.name }}
|
||||
@@ -127,6 +128,11 @@ jobs:
|
||||
externalData: ${{ env.external_data_arn }}
|
||||
testSpecArn: ${{ matrix.test.testSpecArn }}
|
||||
|
||||
- name: Upload benchmark results to S3
|
||||
run: |
|
||||
npm install --ignore-scripts
|
||||
node scripts/aws-device-farm/download-benchmark-results.mjs ${{ steps.aws_device_farm_run.outputs.runArn }}
|
||||
|
||||
- uses: LouisBrunner/checks-action@v2.0.0
|
||||
if: always() && (env.run_device_test == 'true' || matrix.test.name == 'Android Render Tests')
|
||||
with:
|
||||
|
||||
16
.github/workflows/typecheck-scripts.yml
vendored
Normal file
16
.github/workflows/typecheck-scripts.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: typecheck-scripts
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
typecheck-scripts:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- run: |
|
||||
npm install --ignore-scripts
|
||||
npx tsc -p scripts/jsconfig.json
|
||||
Reference in New Issue
Block a user