This repository has been archived by the owner on Aug 11, 2024. It is now read-only.
Introduce metasheet action to share text (#1134) #31
This file contains 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
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]} |