Skip to content

Merge pull request #270 from ashfurrow/dependabot/bundler/activesuppo… #202

Merge pull request #270 from ashfurrow/dependabot/bundler/activesuppo…

Merge pull request #270 from ashfurrow/dependabot/bundler/activesuppo… #202

name: Testing
on: [push, pull_request]
jobs:
test:
name: Build and Test Nimble-Snapshots
runs-on: macOS-12
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: 14.0
- name: Set up Ruby 2.7.2
uses: ruby/[email protected]
with:
ruby-version: 2.7.2
bundler-cache: true
- name: "Create output dir"
run: mkdir output
- name: Run tests in Swift 5.X
run: xcodebuild -workspace 'Bootstrap/Bootstrap.xcworkspace' -sdk 'iphonesimulator' -scheme 'Bootstrap' -destination 'name=iPhone 8' SWIFT_VERSION=5.0 build test | tee output/xcodebuild_swift5.0.log
- name: Run Carthage integration test
run: carthage bootstrap --use-xcframeworks --platform iOS,tvOS && xcodebuild
shell: bash
- name: Swiftlint
run: |
swiftlint lint --no-cache --reporter junit | tee result.xml
- name: Store Swiftlint artifacts
uses: actions/upload-artifact@v2
with:
name: Swiftlint
path: |
result.xml
- name: Store output artifacts
uses: actions/upload-artifact@v2
with:
name: Output
path: |
output
- name: Store FailureDiffs artifacts
uses: actions/upload-artifact@v2
with:
name: FailureDiffs
path: |
Bootstrap/BootstrapTests/FailureDiffs/
- name: Danger action
uses: MeilCli/[email protected]
if: github.event_name == 'pull_request'
with:
plugins_file: 'Gemfile'
install_path: 'vendor/bundle'
danger_file: 'Dangerfile'
danger_id: 'danger-pr'
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}