Skip to content

Commit

Permalink
Add Periphery Support (#52)
Browse files Browse the repository at this point in the history
# Add Periphery


## ⚙️ Release Notes 
- Adds a Periphery GitHub Action


## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md).
  • Loading branch information
PSchmiedmayer authored Jun 7, 2024
1 parent ee4067c commit 6ff45ea
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/periphery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#
# This source file is part of the Stanford Biodesign Digital Health Group open-source organization
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#

name: Periphery

on:
workflow_call:
inputs:
path:
description: 'The path where the project is located. Defaults to $GITHUB_WORKSPACE'
required: false
type: string
default: '.'
runsonlabels:
description: 'JSON-based collection of labels indicating which type of github runner should be chosen'
required: false
type: string
default: '["macos-14"]'
xcodeversion:
description: 'The Xcode version used for the build'
required: false
type: string
default: 'latest-stable'

permissions:
contents: read

jobs:
periphery:
name: Periphery
runs-on: ${{ fromJson(inputs.runsonlabels) }}
defaults:
run:
working-directory: ${{ inputs.path }}
environment: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ inputs.xcodeversion }}
- name: Check environment
run: |
xcodebuild -version
swift --version
echo "env.selfhosted: ${{ env.selfhosted }}"
echo "environment: ${{ inputs.environment }}"
- name: Install periphery
if: ${{ !env.selfhosted }}
run: brew install peripheryapp/periphery/periphery
- name: Run periphery
run: |
periphery scan --relative-results --format github-actions --strict -- -skipPackagePluginValidation -skipMacroValidation

0 comments on commit 6ff45ea

Please sign in to comment.