name: Build on macOS

on: [push]

jobs:
  build:
    runs-on: macos-11.0

    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Build
        run: swift build
      - name: Tests
        run: swift test --enable-code-coverage
      - name: Codecov
        run: |
          xcrun llvm-cov export -format="lcov" .build/debug/PeppermintPackageTests.xctest/Contents/MacOS/PeppermintPackageTests -instr-profile .build/debug/codecov/default.profdata > .build/PeppermintPackageTests.lcov
          bash <(curl https://codecov.io/bash)

name: Build on macOS

on: [push]

jobs:
  build:
    runs-on: macos-latest

    steps:
      - name: Setup Xcode version
        uses: maxim-lobanov/setup-xcode@v1.2.3
        with:
          xcode-version: latest
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Build
        run: swift build
      - name: Tests
        run: swift test --enable-code-coverage
      - name: Codecov
        run: |
          xcrun llvm-cov export -format="lcov" .build/debug/PeppermintPackageTests.xctest/Contents/MacOS/PeppermintPackageTests -instr-profile .build/debug/codecov/default.profdata > .build/PeppermintPackageTests.lcov
          bash <(curl https://codecov.io/bash)

Update xcode version in github workflow
Update xcode version in github workflow
