name: Build and Test

on:
  push:
  pull_request:
  schedule:
    - cron: "45 8 * * 1"

jobs:
  linux:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        image:
          - swift:5.3.2-xenial
          - swift:5.3.2-bionic
    container: ${{ matrix.image }}
    steps:
      - name: Install SQLite
        run: |
          apt-get update
          apt-get -y install libsqlite3-dev
      - name: Checkout Repository
        uses: actions/checkout@v2
      - name: Build Swift Debug Package
        run: swift build -c debug
      - name: Build Swift Release Package
        run: swift build -c release
      - name: Run Tests
        run: swift test
  nextstep:
    runs-on: macos-latest
    steps:
      - name: Select latest available Xcode
        uses: maxim-lobanov/setup-xcode@v1.2.1
        with:
          xcode-version: 12.2
      - name: Checkout Repository
        uses: actions/checkout@v2
      - name: Build Swift Debug Package
        run: swift build -c debug
      - name: Build Swift Release Package
        run: swift build -c release
#      - name: Run Tests
#        run: swift test

name: Build and Test

on:
  push:
  pull_request:
  schedule:
    - cron: "45 8 * * 1"

jobs:
  linux:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        image:
          - swift:5.3.2-xenial
          - swift:5.3.2-bionic
    container: ${{ matrix.image }}
    steps:
      - name: Install SQLite
        run: |
          apt-get update
          apt-get -y install libsqlite3-dev
      - name: Checkout Repository
        uses: actions/checkout@v2
      - name: Build Swift Debug Package
        run: swift build -c debug
      - name: Build Swift Release Package
        run: swift build -c release
      - name: Run Tests
        run: swift test
  nextstep:
    runs-on: macos-latest
    steps:
      - name: Select latest available Xcode
        uses: maxim-lobanov/setup-xcode@v1.2.1
        with:
          xcode-version: 12.2
      - name: Checkout Repository
        uses: actions/checkout@v2
      - name: Build Xcode Project
        run: xcodebuild -project ZeeQL3.xcodeproj -scheme ZeeQL
      - name: Build Swift Debug Package
        run: swift build -c debug
      - name: Build Swift Release Package
        run: swift build -c release
#      - name: Run Package Tests
#        run: swift test
      - name: Run Xcode Tests
        run: xcodebuild -project ZeeQL3.xcodeproj -scheme ZeeQL test

Build Xcode project & tests on
GHA: Build Xcode project & tests on

Let's see whether that works.
