Skip to content

feat: 🎸 [JIRA:HCPSDKFIORIUIKIT-2828] PreviewDevice is ignored in a #Preview macro #1889

feat: 🎸 [JIRA:HCPSDKFIORIUIKIT-2828] PreviewDevice is ignored in a #Preview macro

feat: 🎸 [JIRA:HCPSDKFIORIUIKIT-2828] PreviewDevice is ignored in a #Preview macro #1889

Workflow file for this run

name: PR
on:
pull_request:
types: [opened, synchronize]
jobs:
swift-api-assign-reviewer:
runs-on: ubuntu-latest
steps:
- uses: MarcoEidinger/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/configActions/swift-api-assign-reviewer.yml"
conventionalcommit-verification:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
with:
configFile: '.github/configActions/commitlint.config.js'
ReuseComplianceCheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: REUSE Compliance Check
uses: fsfe/[email protected]
CodeFormattingCheck:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: Cache Mint packages
id: mint-cache
uses: actions/cache@v2
with:
path: /usr/local/lib/mint
key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
restore-keys: ${{ runner.os }}-mint-
- name: Install Mint
run: |
brew upgrade mint || brew install mint || true
- name: Install swiftformat via mint
if: steps.mint-cache.outputs.cache-hit != 'true'
run: mint bootstrap
- name: Format Swift code
run: mint run swiftformat --verbose .
- name: Verify formatted code is unchanged
run: git diff --exit-code HEAD
LocalizableTextCommentsCheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout Repo
uses: actions/checkout@v3
- name: Check for changes in .strings files
uses: getsentry/paths-filter@v2
id: changes
with:
filters: |
src:
- 'Sources/**/*.strings'
- name: Run StringsLint to check for missing comments in .strings files
uses: dral3x/[email protected]
if: steps.changes.outputs.src == 'true'