add support for block-ctl-fb action #25
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: PR Checks | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
swiftlint: | |
name: Run SwiftLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v3 | |
- name: Run SwiftLint on all files | |
uses: norio-nomura/[email protected] | |
with: | |
args: --strict --force-exclude | |
unit-tests: | |
name: Run unit tests | |
runs-on: macos-12 | |
timeout-minutes: 30 | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Select Xcode | |
run: sudo xcode-select -s /Applications/Xcode_14.1.app/Contents/Developer | |
- name: Run tests | |
run: | | |
swift test --parallel \ | |
--xunit-output tests.xml | |
- name: Publish Unit Tests Report | |
uses: mikepenz/action-junit-report@v3 | |
if: always() | |
with: | |
check_name: Test Report | |
report_paths: tests.xml |