Skip to content

Swift Package Manager Lint #2

Swift Package Manager Lint

Swift Package Manager Lint #2

Workflow file for this run

name: Swift Package Manager Lint
on:
workflow_run:
workflows:
- 'Build'
types:
- completed
branches:
- '**'
jobs:
spm-lint:
name: Lint Package For Swift Package Manager
runs-on: macos-13
strategy:
matrix:
destination: ['generic/platform=iOS Simulator',
'generic/platform=iOS',
'generic/platform=macOS']
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Update Packages
run: |
swift package update
- name: Build Project
env:
project: ./.github/workflows/SPMDummy/SPMDummy.xcodeproj
scheme: SPMDummy
destination: ${{ destination }}

Check failure on line 37 in .github/workflows/spm-lint.yml

View workflow run for this annotation

GitHub Actions / Swift Package Manager Lint

Invalid workflow file

The workflow is not valid. .github/workflows/spm-lint.yml (Line: 37, Col: 24): Unrecognized named-value: 'destination'. Located at position 1 within expression: destination
run: |
xcodebuild clean build -project "${project}" -scheme "${scheme}" -destination "${destination}" | xcpretty && exit ${PIPESTATUS[0]}