Skip to content

Commit

Permalink
mobile/ci: Fix/improve iOS build tests (#31337)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax committed Dec 13, 2023
1 parent 62a10e9 commit 874ccb7
Show file tree
Hide file tree
Showing 15 changed files with 87 additions and 94 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,28 @@ jobs:
docker:
runs-on: ubuntu-22.04
steps:
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.17
id: appauth
name: Appauth (mutex lock)
with:
app_id: ${{ secrets.app-id }}
key: ${{ secrets.app-key }}
- uses: envoyproxy/toolshed/gh-actions/docker/cache/prime@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/docker/cache/prime@actions-v0.2.17
id: docker
name: Prime Docker cache (${{ inputs.image-tag }})
with:
image-tag: ${{ inputs.image-tag }}
lock-token: ${{ steps.appauth.outputs.token }}
lock-repository: ${{ inputs.lock-repository }}
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.17
id: data
name: Cache data
with:
input-format: yaml
input: |
cached: ${{ steps.docker.outputs.cached }}
key: ${{ inputs.image-tag }}
- uses: envoyproxy/toolshed/gh-actions/json/table@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/json/table@actions-v0.2.17
name: Summary
with:
json: ${{ steps.data.outputs.value }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/_finish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
actions: read
contents: read
steps:
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.17
name: Incoming data
id: needs
with:
Expand Down Expand Up @@ -87,21 +87,21 @@ jobs:
summary: "Check has finished",
text: $text}}}}
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.17
name: Print summary
with:
input: ${{ toJSON(steps.needs.outputs.value).summary-title }}
filter: |
"## \(.)"
options: -Rr
output-path: GITHUB_STEP_SUMMARY
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.17
name: Appauth
id: appauth
with:
app_id: ${{ secrets.app-id }}
key: ${{ secrets.app-key }}
- uses: envoyproxy/toolshed/gh-actions/github/checks@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/github/checks@actions-v0.2.17
name: Update check
with:
action: update
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/_load.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
# Handle any failure in triggering job
# Remove any `checks` we dont care about
# Prepare a check request
- uses: envoyproxy/toolshed/gh-actions/github/env/load@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/github/env/load@actions-v0.2.17
name: Load env
id: data
with:
Expand All @@ -102,21 +102,21 @@ jobs:
GH_TOKEN: ${{ github.token }}

# Update the check
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.17
name: Appauth
id: appauth
with:
app_id: ${{ secrets.app-id }}
key: ${{ secrets.app-key }}
- uses: envoyproxy/toolshed/gh-actions/github/checks@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/github/checks@actions-v0.2.17
name: Update check
if: ${{ fromJSON(steps.data.outputs.data).data.check.action == 'RUN' }}
with:
action: update
checks: ${{ toJSON(fromJSON(steps.data.outputs.data).checks) }}
token: ${{ steps.appauth.outputs.token }}

- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.17
name: Print request summary
with:
input: |
Expand All @@ -136,7 +136,7 @@ jobs:
| $summary.summary as $summary
| "${{ inputs.template-request-summary }}"
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.17
id: request-output
name: Load request
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ jobs:
env: ${{ steps.data.outputs.value }}
config: ${{ steps.config.outputs.config }}
steps:
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.17
id: started
name: Create timestamp
with:
options: -r
filter: |
now
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.17
id: checkout
name: Checkout Envoy repository
with:
Expand All @@ -60,7 +60,7 @@ jobs:
# *ALL* variables collected should be treated as untrusted and should be sanitized before
# use
- name: Generate environment variables from commit
uses: envoyproxy/toolshed/gh-actions/envoy/ci/request@actions-v0.2.15
uses: envoyproxy/toolshed/gh-actions/envoy/ci/request@actions-v0.2.17
id: env
with:
branch-name: ${{ steps.checkout.outputs.branch-name }}
Expand All @@ -71,7 +71,7 @@ jobs:
vars: ${{ toJSON(vars) }}
- name: Request summary
id: summary
uses: envoyproxy/toolshed/gh-actions/github/env/summary@actions-v0.2.15
uses: envoyproxy/toolshed/gh-actions/github/env/summary@actions-v0.2.17
with:
actor: ${{ toJSON(fromJSON(steps.env.outputs.data).request.actor) }}
base-sha: ${{ fromJSON(steps.env.outputs.data).request.base-sha }}
Expand All @@ -87,7 +87,7 @@ jobs:
target-branch: ${{ fromJSON(steps.env.outputs.data).request.target-branch }}

- name: Environment data
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.15
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.17
id: data
with:
input: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ on:
summary-post:
type: string
default: |
- uses: envoyproxy/toolshed/gh-actions/envoy/run/summary@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/envoy/run/summary@actions-v0.2.17
with:
context: %{{ inputs.context }}
steps-pre:
Expand Down Expand Up @@ -152,15 +152,15 @@ jobs:
name: ${{ inputs.command }} ${{ inputs.target }}
timeout-minutes: ${{ inputs.timeout-minutes }}
steps:
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.17
id: started
name: Create timestamp
with:
options: -r
filter: |
now
# This controls which input vars are exposed to the run action (and related steps)
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.17
name: Context
id: context
with:
Expand All @@ -181,11 +181,11 @@ jobs:
| . * {$config, $check}
- if: ${{ inputs.cache-build-image }}
name: Restore Docker cache ${{ inputs.cache-build-image && format('({0})', inputs.cache-build-image) || '' }}
uses: envoyproxy/toolshed/gh-actions/docker/cache/restore@actions-v0.2.15
uses: envoyproxy/toolshed/gh-actions/docker/cache/restore@actions-v0.2.17
with:
image_tag: ${{ inputs.cache-build-image }}

- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.17
id: appauth
name: Appauth
if: ${{ inputs.trusted }}
Expand All @@ -196,7 +196,7 @@ jobs:
# - the workaround is to allow the token to be passed through.
token: ${{ github.token }}
token-ok: true
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.17
id: checkout
name: Checkout Envoy repository
with:
Expand All @@ -213,15 +213,15 @@ jobs:
token: ${{ inputs.trusted && steps.appauth.outputs.token || github.token }}

# This is currently only use by mobile-docs and can be removed once they are updated to the newer website
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.17
id: checkout-extra
name: Checkout extra repository (for publishing)
if: ${{ inputs.checkout-extra }}
with:
config: ${{ inputs.checkout-extra }}
ssh-key: ${{ inputs.trusted && inputs.ssh-key-extra || '' }}

- uses: envoyproxy/toolshed/gh-actions/github/run@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/github/run@actions-v0.2.17
name: Run CI ${{ inputs.command }} ${{ inputs.target }}
with:
args: ${{ inputs.args != '--' && inputs.args || inputs.target }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/_stage_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
export ENVOY_PUBLISH_DRY_RUN=${{ (fromJSON(inputs.request).request.version.dev || ! inputs.trusted) && 1 || '' }}
steps-pre: |
- id: url
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.15
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.17
with:
options: -Rr
input: >-
Expand All @@ -80,7 +80,7 @@ jobs:
end
| . as $bucket
| "https://storage.googleapis.com/\($bucket)/\($sha)/\($path)"
- uses: envoyproxy/toolshed/gh-actions/fetch@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/fetch@actions-v0.2.17
with:
url: %{{ steps.url.outputs.value }}
path: %{{ runner.temp }}/release.signed
Expand All @@ -98,12 +98,12 @@ jobs:
needs:
- publish
steps:
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.17
id: appauth
with:
app_id: ${{ secrets.ENVOY_CI_SYNC_APP_ID }}
key: ${{ secrets.ENVOY_CI_SYNC_APP_KEY }}
- uses: envoyproxy/toolshed/gh-actions/dispatch@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/dispatch@actions-v0.2.17
with:
ref: main
repository: ${{ fromJSON(inputs.request).request.version.dev && 'envoyproxy/envoy-website' || 'envoyproxy/archive' }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/_stage_verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
rbe: false
steps-pre: |
- id: url
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.15
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.17
with:
options: -Rr
input: >-
Expand All @@ -66,15 +66,15 @@ jobs:
end
| . as $bucket
| "https://storage.googleapis.com/\($bucket)/\($sha)"
- uses: envoyproxy/toolshed/gh-actions/docker/fetch@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/docker/fetch@actions-v0.2.17
with:
url: %{{ steps.url.outputs.value }}/docker/envoy.tar
variant: dev
- uses: envoyproxy/toolshed/gh-actions/docker/fetch@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/docker/fetch@actions-v0.2.17
with:
url: %{{ steps.url.outputs.value }}/docker/envoy-contrib.tar
variant: contrib-dev
- uses: envoyproxy/toolshed/gh-actions/docker/fetch@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/docker/fetch@actions-v0.2.17
with:
url: %{{ steps.url.outputs.value }}/docker/envoy-google-vrp.tar
variant: google-vrp-dev
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/_start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
start:
runs-on: ubuntu-22.04
steps:
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.17
id: check-config
name: Prepare check data
with:
Expand All @@ -77,13 +77,13 @@ jobs:
| .skipped.output.summary = "${{ inputs.skipped-summary }}"
| .skipped.output.text = ""
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.17
name: Appauth
id: appauth
with:
app_id: ${{ secrets.app-id }}
key: ${{ secrets.app-key }}
- uses: envoyproxy/toolshed/gh-actions/github/checks@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/github/checks@actions-v0.2.17
name: Start checks
id: checks
with:
Expand All @@ -94,7 +94,7 @@ jobs:
${{ fromJSON(inputs.env).summary.summary }}
token: ${{ steps.appauth.outputs.token }}
- uses: envoyproxy/toolshed/gh-actions/json/table@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/json/table@actions-v0.2.17
name: Summary
with:
collapse-open: true
Expand All @@ -118,7 +118,7 @@ jobs:
output-path: GITHUB_STEP_SUMMARY
title: Checks started/skipped

- uses: envoyproxy/toolshed/gh-actions/github/env/save@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/github/env/save@actions-v0.2.17
name: Save env
id: data
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: Pre-cleanup
uses: envoyproxy/toolshed/gh-actions/diskspace@actions-v0.2.15
uses: envoyproxy/toolshed/gh-actions/diskspace@actions-v0.2.17
with:
to_remove: |
/usr/local/lib/android
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
&& github.actor != 'dependabot[bot]'
}}
steps:
- uses: envoyproxy/toolshed/gh-actions/github/command@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/github/command@actions-v0.2.17
name: Parse command from comment
id: command
with:
Expand All @@ -36,14 +36,14 @@ jobs:
^/(retest)
# /retest
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.17
if: ${{ steps.command.outputs.command == 'retest' }}
id: appauth-retest
name: Appauth (retest)
with:
key: ${{ secrets.ENVOY_CI_APP_KEY }}
app_id: ${{ secrets.ENVOY_CI_APP_ID }}
- uses: envoyproxy/toolshed/gh-actions/retest@actions-v0.2.15
- uses: envoyproxy/toolshed/gh-actions/retest@actions-v0.2.17
if: ${{ steps.command.outputs.command == 'retest' }}
name: Retest
with:
Expand Down
Loading

0 comments on commit 874ccb7

Please sign in to comment.