name: Swift on: [push] jobs: test: runs-on: macOS-latest steps: - uses: actions/checkout@v1 - name: install xcpretty run: gem install xcpretty - name: Force Xcode 11 run: sudo xcode-select -switch /Applications/Xcode_11.3.app - name: Run tests run: xcodebuild test -project MTMR.xcodeproj -scheme 'UnitTests' | xcpretty -c && exit ${PIPESTATUS[0]} build: runs-on: macOS-latest steps: - uses: actions/checkout@v1 - name: Set up Node.js uses: actions/setup-node@v1 with: node-version: 12.x - name: Install create-dmg run: npm i -g create-dmg - name: Build Archive run: xcodebuild archive -project "MTMR.xcodeproj" -scheme "MTMR" -archivePath Release/App.xcarchive DEVELOPMENT_TEAM="" CODE_SIGN_IDENTITY="" | xcpretty -c && exit ${PIPESTATUS[0]} - name: Build App run: xcodebuild -project "MTMR.xcodeproj" -exportArchive -archivePath Release/App.xcarchive -exportOptionsPlist export-options.plist -exportPath Release | xcpretty -c && exit ${PIPESTATUS[0]} - name: Build dmg run: | cd Release rm -r App.xcarchive create-dmg MTMR.app - uses: actions/upload-artifact@v1 with: name: MTMR.app path: Release/MTMR.app