Skip to content

Benchmarks: fix typo in workflow yaml #581

Benchmarks: fix typo in workflow yaml

Benchmarks: fix typo in workflow yaml #581

Workflow file for this run

name: benchmarks
on:
pull_request:
branches: [ '*' ]
schedule:
- cron: '0 3 * * *'
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
jobs:
benchmarks:
runs-on: macos-11
if: github.repository == 'apollographql/apollo-kotlin'
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c #v3.3.0
- uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b #v3.9.0
with:
distribution: 'temurin'
java-version: 17
- uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef #v2.3.3
with:
gradle-home-cache-cleanup: true
- run: |
ulimit -c unlimited
# Workaround an issue where kotlinNpmInstall outputs
# 'Resolving NPM dependencies using yarn' returns 137
./gradlew compileKotlinJs
./gradlew --stop
- run: |
# Build the libs
./gradlew publishAllPublicationsToPluginTestRepository
- run: |
# Build the benchmark apks
./gradlew -p benchmark assembleRelease assembleReleaseAndroidTest
# Step can be removed if/when gcloud is added to the macos image - See https://github.com/actions/virtual-environments/issues/4639
- name: Setup gcloud
uses: google-github-actions/setup-gcloud@d51b5346f85640ec2aa2fa057354d2b82c2fcbce #v1.0.1
- run: ./scripts/run-benchmarks.main.kts
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
DD_API_KEY: ${{ secrets.DD_API_KEY }}
GITHUB_TOKEN: ${{ github.token }}
- name: nativebenchmarks
run: |
# Run the native benchmarks
./gradlew -p tests :native-benchmarks:allTests
# Upload the results to DataDog
./scripts/upload-native-benchmarks.main.kts
env:
DD_API_KEY: ${{ secrets.DD_API_KEY }}