Support for Swift 6-style internal import
#49
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '.gitignore' | |
- '.spi.yml' | |
- 'CODE_OF_CONDUCT.md' | |
- 'LICENSE' | |
- 'README.md' | |
pull_request: | |
branches-ignore: | |
- 'bugfix/**' | |
- 'feature/**' | |
- 'topic/**' | |
paths-ignore: | |
- '.gitignore' | |
- '.spi.yml' | |
- 'CODE_OF_CONDUCT.md' | |
- 'LICENSE' | |
- 'README.md' | |
workflow_dispatch: | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: macos-13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Lint Swift Code | |
run: swiftlint lint --strict --reporter github-actions-logging | |
- name: Lint Bash Code | |
uses: ludeeus/action-shellcheck@master | |
with: | |
scandir: './Scripts' | |
ignore_paths: Templates | |
version: v0.10.0 | |
env: | |
SHELLCHECK_OPTS: -e SC1009 -e SC1072 -e SC1073 -e SC1090 -e SC1091 | |
tests: | |
name: Tests (Xcode ${{ matrix.xcode }}${{ matrix.upload_coverage && ', Upload Coverage Report' || '' }}) | |
needs: [lint] | |
runs-on: macos-${{ matrix.macos }} | |
env: | |
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" | |
strategy: | |
matrix: | |
include: | |
- macos: 13 | |
xcode: '14.2' # Swift 5.7 | |
upload_coverage: false | |
- macos: 14 | |
xcode: '14.3.1' # Swift 5.8 | |
upload_coverage: false | |
- macos: 14 | |
xcode: '15.2' # Swift 5.9 | |
upload_coverage: false | |
- macos: 14 | |
xcode: '15.4' # Swift 5.10 | |
upload_coverage: true | |
steps: | |
- name: Runner Overview | |
run: system_profiler SPHardwareDataType SPSoftwareDataType SPDeveloperToolsDataType | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Upgrade Bash | |
run: make bash | |
- name: Run Tests | |
run: make tests | |
- name: Upload Code Coverage Report | |
if: ${{ matrix.upload_coverage }} | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: ./.coverage/ | |
fail_ci_if_error: true | |
verbose: true |