Skip to content

chore: Revamping Unit Tests workflows #1

chore: Revamping Unit Tests workflows

chore: Revamping Unit Tests workflows #1

name: Build | Amplify Swift
on:
workflow_call:
inputs:
identifier:
required: true
type: string
workflow_dispatch:
inputs:
ios:
description: '📱 iOS'
required: true
default: true
type: boolean
macos:
description: '💻 macOS'
required: true
default: true
type: boolean
tvos:
description: '📺 tvOS'
required: true
default: true
type: boolean
watchos:
description: '⌚️ watchOS'
required: true
default: true
type: boolean
push:
branches-ignore:
- main
- release
permissions:
contents: read
concurrency:
group: ${{ inputs.identifier || github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref_name != 'main'}}
jobs:
build-amplify-swift:

Check failure on line 43 in .github/workflows/build_amplify_swift_platforms.yml

View workflow run for this annotation

GitHub Actions / Build | Amplify Swift

Invalid workflow file

The workflow is not valid. .github/workflows/build_amplify_swift_platforms.yml (Line: 43, Col: 3): Error calling workflow 'aws-amplify/amplify-swift/.github/workflows/build_amplify_swift.yml@2f36ebbc42be62cbc87859e7d25dd88782c11958'. The workflow is requesting 'actions: write', but is only allowed 'actions: none'.
name: Build Amplify Swift
strategy:
fail-fast: false
matrix:
platform: [iOS, macOS, tvOS, watchOS]
exclude:
- platform: ${{ github.event.inputs.ios == 'false' && 'iOS' || 'None' }}
- platform: ${{ github.event.inputs.macos == 'false' && 'macOS' || 'None' }}
- platform: ${{ github.event.inputs.tvos == 'false' && 'tvOS' || 'None' }}
- platform: ${{ github.event.inputs.watchos == 'false' && 'watchOS' || 'None' }}
uses: ./.github/workflows/build_amplify_swift.yml
with:
platform: ${{ matrix.platform }}
confirm-pass:
runs-on: ubuntu-latest
name: Confirm Passing Build Steps
if: ${{ !cancelled() }}
needs: [ build-amplify-swift ]
env:
EXIT_CODE: ${{ contains(needs.*.result, 'failure') && 1 || 0 }}
steps:
- run: exit $EXIT_CODE