passforios/.github/workflows/testing.yml
Danny Mösch 032436fa70
Move to Swift Package Manager disregarding Cocoapods (#496)
* Build as many dependencies as possible with SPM.
* Xcworkspace is no longer needed.
* Collecting coverage information does unfortunately cause linking errors in Base32. So it is disabled for now.
2021-08-30 09:41:29 -07:00

43 lines
1.5 KiB
YAML

name: Testing
on: [push, pull_request]
jobs:
testing:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Installing packages
run: |
brew install libtool automake cmake carthage swiftformat openssl libssh2
brew install swiftlint || brew link --overwrite swiftlint
brew install go || brew link --overwrite go
gem install bundler
- uses: actions/cache@v2
id: carthage-cache
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: |
${{ runner.os }}-carthage-${{ secrets.CACHE_VERSION }}-
- uses: actions/cache@v2
id: gopenpgp-cache
with:
path: go
key: ${{ runner.os }}-gopenpgp-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/gopenpgp_build.sh') }}
restore-keys: |
${{ runner.os }}-gopenpgp-${{ secrets.CACHE_VERSION }}-
- name: Bundle Install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Carthage
if: steps.carthage-cache.outputs.cache-hit != 'true'
run: |
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/libssh2/lib/pkgconfig/"
./scripts/wcarthage bootstrap --platform iOS --no-use-binaries --cache-builds
- name: GopenPGP
if: steps.gopenpgp-cache.outputs.cache-hit != 'true'
run: ./scripts/gopenpgp_build.sh
- name: Testing
run: bundle exec fastlane test