Fail on duplicate keys in a mapping #268
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-13 | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_15.0.app | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 swiftlint || brew upgrade swiftlint | |
- name: Run SwiftLint Analyze | |
run: swiftlint analyze --strict --compiler-log-path xcodebuild.log --reporter github-actions-logging |