Emulator.wtf is an Android cloud emulator laser-focused on performance to deliver quick feedback to your PRs.
With this action you can use emulator.wtf in your GitHub Actions workflows without having to explicitly specify an API token. The action relies on GitHub OIDC tokens to authenticate with emulator.wtf and obtain temporary credentials.
-
Create a new OIDC configuration in the emulator.wtf web app.
-
Add
id-token: writepermission to your workflow YAML. You'll most likely want thecontents: readpermission too to check out your repository.permissions: contents: read id-token: write
-
Invoke the
emulator-wtf/configure-credentialsaction with the OIDC configuration ID added in step 1.- uses: emulator-wtf/configure-credentials@v1 with: oidc-configuration-id: **OIDC-CONFIGURATION-ID-GOES-HERE**
-
Invoke
ew-cli, emulator.wtf Gradle Plugin or any of theemulator-wtf/*GitHub actions without having to pass in an API token.
Read more about OIDC in emulator.wtf.
| Variable | Description |
|---|---|
oidc-configuration-id |
The OIDC configuration ID as displayed in the emulator.wtf webapp |
name: Test workflow
permissions:
contents: read
id-token: write
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: '24'
- uses: emulator-wtf/configure-credentials@v1
with:
oidc-configuration-id: **OIDC-CONFIGURATION-ID-GOES-HERE**
- run: ./gradlew testWithEmulatorWtf