Support Embedded Swift #228
Workflow file for this run
  
    
      This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - "*" | |
| jobs: | |
| "validity-Tests": | |
| runs-on: macOS-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Install swiftformat | |
| run: brew install swiftformat | |
| - name: Run validity | |
| run: ./scripts/validity.sh . | |
| "tuxOS-Tests": | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| images: | |
| - swift:5.1 | |
| - swift:5.2 | |
| - swift:5.3 | |
| - swiftlang/swift:nightly-master-focal | |
| container: | |
| image: ${{ matrix.images }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Test | |
| run: swift test --enable-code-coverage --enable-test-discovery | |
| - name: Convert coverage files | |
| run: llvm-cov export -format="lcov" .build/debug/swift-extras-jsonPackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov | |
| - name: Install curl | |
| run: apt-get update && apt-get install -y curl # required by the codecov action. | |
| - name: Upload to codecov.io | |
| uses: codecov/codecov-action@v1 | |
| with: | |
| file: info.lcov | |
| "tuxOS-Performance-Tests": | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| images: | |
| - swift:5.1 | |
| - swift:5.2 | |
| - swift:5.3 | |
| - swiftlang/swift:nightly-master-focal | |
| container: | |
| image: ${{ matrix.images }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Build | |
| run: swift build -c release | |
| working-directory: ./PerfTests | |
| - name: Run test | |
| run: swift run -c release | |
| working-directory: ./PerfTests | |
| "tuxOS-Integration-Tests": | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| images: | |
| - swift:5.1 | |
| - swift:5.2 | |
| - swift:5.3 | |
| - swiftlang/swift:nightly-master-focal | |
| container: | |
| image: ${{ matrix.images }} | |
| env: | |
| MAX_ALLOCS_ALLOWED_jsonvalue_to_bytes: 0 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Test | |
| run: ./run-tests.sh | |
| working-directory: ./IntegrationTests | |
| "macOS-Tests": | |
| runs-on: macOS-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| xcode: | |
| - Xcode_11.2.app | |
| - Xcode_11.6.app | |
| - Xcode_12.2.app | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Show all Xcode versions | |
| run: ls -an /Applications/ | grep Xcode* | |
| - name: Change Xcode command line tools | |
| run: sudo xcode-select -s /Applications/${{ matrix.xcode }}/Contents/Developer | |
| - name: Swift version | |
| run: swift --version | |
| - name: Xcode Tests | |
| run: | | |
| swift package generate-xcodeproj --skip-extra-files --enable-code-coverage | |
| xcodebuild -quiet -parallel-testing-enabled YES -scheme swift-extras-json-Package -enableCodeCoverage YES build test | |
| - name: Codecov | |
| run: bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}} -f *.coverage.txt | |
| "macOS-Performance-Tests": | |
| runs-on: macOS-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| xcode: | |
| - Xcode_11.2.app | |
| - Xcode_11.6.app | |
| - Xcode_12.2.app | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Change Xcode command line tools | |
| run: sudo xcode-select -s /Applications/${{ matrix.xcode }}/Contents/Developer | |
| - name: Swift version | |
| run: swift --version | |
| - name: Build | |
| run: swift build -c release | |
| working-directory: ./PerfTests | |
| - name: Run test | |
| run: swift run -c release | |
| working-directory: ./PerfTests |