Update Swift Package dependencies #34
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: Apple | |
env: | |
NWS_AGENT_CONTACT: ${{ secrets.NWS_AGENT_CONTACT }} | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: 14.2 | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: .build | |
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | |
restore-keys: | | |
${{ runner.os }}-spm- | |
- name: Build | |
run: swift build -v | |
- name: Run tests | |
run: swift test -v | |
ios: | |
runs-on: macos-latest | |
steps: | |
- uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: 14.2 | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: .build | |
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | |
restore-keys: | | |
${{ runner.os }}-spm- | |
- name: Build | |
run: xcodebuild clean build-for-testing | |
-scheme 'NationalWeatherService' | |
-destination 'name=iPhone 14 Pro' | |
-quiet | |
- name: Unit Test | |
run: xcodebuild test-without-building | |
-scheme 'NationalWeatherService' | |
-destination 'name=iPhone 14 Pro' | |
-quiet |