Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Web-based block-editor #36

Web-based block-editor

Web-based block-editor #36

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
name: Run test suite
jobs:
run-tests:
# macos runners and their supported xcode/ios versions can be found here:
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
runs-on: macos-13
strategy:
matrix:
include:
- xcode: "15.1"
ios: "17.0.1"
name: Test iOS ${{ matrix.ios }}
steps:
- uses: actions/checkout@v2
- name: Cache packages
id: cache-swiftpm
uses: actions/cache@v3
env:
cache-name: cache-swift-pm
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/Library/Caches/org.swift.swiftpm/
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Run unit tests
run: ./scripts/run_tests.sh "iOS Simulator" "iPhone 15 Pro" "${{ matrix.ios }}" "${{ matrix.xcode }}" | xcpretty && exit ${PIPESTATUS[0]}