Skip to content

GitHub Actions workflow fixes #282

GitHub Actions workflow fixes

GitHub Actions workflow fixes #282

name: SwiftLint Analyze
on:
push:
branches: [main]
paths:
- '.github/workflows/swiftlint_analyze.yml'
- 'Yams.xcodeproj/**'
- 'Sources/**/*.[ch]'
- 'Sources/**/*.swift'
- 'Tests/**/*.swift'
- '!Tests/LinuxMain.swift'
pull_request:
paths:
- '.github/workflows/swiftlint_analyze.yml'
- 'Yams.xcodeproj/**'
- 'Sources/**/*.[ch]'
- 'Sources/**/*.swift'
- 'Tests/**/*.swift'
- '!Tests/LinuxMain.swift'
jobs:
Analyze:
runs-on: macos-14
env:
DEVELOPER_DIR: /Applications/Xcode_15.4.app
steps:
- uses: actions/checkout@v4
- name: Generate xcodebuild.log
run: xcodebuild -sdk macosx -scheme Yams -project Yams.xcodeproj clean build-for-testing > xcodebuild.log
shell: bash
- name: Install SwiftLint
run: brew install [email protected] || brew upgrade [email protected]
- name: Run SwiftLint Analyze
run: swiftlint analyze --strict --compiler-log-path xcodebuild.log --reporter github-actions-logging