Integrate the StoreKit2
purchase method
#68
Workflow file for this run
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
name: "flare" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
paths: | ||
- '.swiftlint.yml' | ||
- ".github/workflows/**" | ||
- "Package.swift" | ||
- "Source/**" | ||
- "Tests/**" | ||
jobs: | ||
SwiftLint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: GitHub Action for SwiftLint | ||
uses: norio-nomura/[email protected] | ||
with: | ||
args: --strict | ||
env: | ||
DIFF_BASE: ${{ github.base_ref }} | ||
macOS: | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.runsOn }} | ||
env: | ||
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer" | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- xcode: "Xcode_15.0" | ||
runsOn: macos-13 | ||
name: "macOS 13, Xcode 15.0, Swift 5.9.0" | ||
- xcode: "Xcode_14.3.1" | ||
runsOn: macos-13 | ||
name: "macOS 13, Xcode 14.3.1, Swift 5.8.0" | ||
- xcode: "Xcode_14.2" | ||
runsOn: macOS-12 | ||
name: "macOS 12, Xcode 14.2, Swift 5.7.2" | ||
- xcode: "Xcode_14.1" | ||
runsOn: macOS-12 | ||
name: "macOS 12, Xcode 14.1, Swift 5.7.1" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: ${{ matrix.name }} | ||
run: xcodebuild test -scheme "Flare" -destination "platform=macOS" clean -enableCodeCoverage YES -resultBundlePath "./macos.xcresult" || exit 1 | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
xcode: true | ||
xcode_archive_path: "./macos.xcresult" | ||
iOS: | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.runsOn }} | ||
env: | ||
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer" | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- destination: "OS=17.0,name=iPhone 14 Pro" | ||
name: "iOS 17.0" | ||
xcode: "Xcode_15.0" | ||
runsOn: macos-13 | ||
- destination: "OS=16.1,name=iPhone 14 Pro" | ||
name: "iOS 16.1" | ||
xcode: "Xcode_14.3.1" | ||
runsOn: macos-12 | ||
- destination: "OS=15.5,name=iPhone 13 Pro" | ||
name: "iOS 15.5" | ||
xcode: "Xcode_14.3.1" | ||
runsOn: macOS-12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: ${{ matrix.name }} | ||
run: xcodebuild test -scheme "Flare" -destination "${{ matrix.destination }}" clean -enableCodeCoverage YES -resultBundlePath "./iphonesimulator.xcresult" || exit 1 | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
xcode: true | ||
xcode_archive_path: "./iphonesimulator.xcresult" | ||
tvOS: | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.runsOn }} | ||
env: | ||
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer" | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
- destination: "OS=17.0,name=Apple TV" | ||
name: "tvOS 17.0" | ||
xcode: "Xcode_15.0" | ||
runsOn: macos-13 | ||
- destination: "OS=16.1,name=Apple TV" | ||
name: "tvOS 16.1" | ||
xcode: "Xcode_14.3.1" | ||
runsOn: macos-12 | ||
- destination: "OS=15.4,name=Apple TV" | ||
name: "tvOS 15.4" | ||
xcode: "Xcode_14.3.1" | ||
runsOn: macos-12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: ${{ matrix.name }} | ||
run: xcodebuild test -scheme "Flare" -destination "${{ matrix.destination }}" clean -enableCodeCoverage YES -resultBundlePath "./appletvsimulator.xcresult" || exit 1 | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
xcode: true | ||
xcode_archive_path: "./appletvsimulator.xcresult" | ||
Beta: | ||
name: ${{ matrix.name }} | ||
runs-on: macos-13 | ||
env: | ||
DEVELOPER_DIR: "/Applications/Xcode_15.1.app/Contents/Developer" | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- destination: "OS=1.0,name=Apple Vision Pro" | ||
name: "visionOS 1.0" | ||
scheme: "Flare" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: ${{ matrix.name }} | ||
run: xcodebuild test -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean || exit 1 |