This repository was archived by the owner on Dec 13, 2024. It is now read-only.
update readme ready for archiving #41
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: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
swiftlint: | |
name: SwiftLint | |
if: github.event_name == 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v3 | |
- name: Run SwiftLint on all files | |
uses: norio-nomura/action-swiftlint@3.2.1 | |
with: | |
args: --strict --force-exclude | |
unit-tests: | |
name: Unit Tests | |
runs-on: macos-12 | |
timeout-minutes: 30 | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v3 | |
- name: Select Xcode | |
run: sudo xcode-select -s /Applications/Xcode_14.1.app/Contents/Developer | |
- name: Build and test | |
run: | | |
set -o pipefail && xcodebuild test \ | |
-scheme "DuckDuckGo" \ | |
-configuration "CI" \ | |
ENABLE_TESTABILITY=true \ | |
| xcpretty -r junit -o unittests.xml | |
- name: Publish unit tests report | |
uses: mikepenz/action-junit-report@v3.2.0 | |
if: always() | |
with: | |
report_paths: unittests.xml | |