Skip to content

Commit

Permalink
Add .onReceive(stream:perform:) view modifier and UI Tests (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrentMifsud authored Sep 3, 2022
1 parent 42ccd8b commit abfbf2c
Show file tree
Hide file tree
Showing 18 changed files with 1,003 additions and 7 deletions.
39 changes: 34 additions & 5 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,45 @@ on:
branches: [ "main" ]

jobs:
build:
strategy:
matrix:
platform: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.platform }}

build_linux:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v

build_macos:
runs-on: macos-12

steps:
- uses: actions/checkout@v3
# - name: List Xcode Versions
# run: >
# ls -l /Applications | grep "Xcode"
# - name: Select Xcode
# run: >
# xcode-select -s /Applications/Xcode_13.4.1.app/Contents/Developer
- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable
- name: Build and test
run: >
cd ${{ github.workspace }}/AsyncValueTestApp;
xcodebuild test -project AsyncValueTestApp.xcodeproj
-scheme AsyncValueTestApp
-destination 'platform=iOS Simulator,name=iPhone 13'
-testPlan AllTests
-resultBundlePath ${{ runner.temp }}/TestResults.xcresult;
- name: Test Results
uses: kishikawakatsumi/[email protected]
if: success() || failure()
with:
path: ${{ runner.temp }}/TestResults.xcresult
token: ${{ secrets.GITHUB_TOKEN }}


1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ DerivedData/
.swiftpm/config/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
build
Loading

0 comments on commit abfbf2c

Please sign in to comment.