-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setup CI * Add compiler checks * Bump watchOS version * Fix build * Placeholder docs * Bump tvOS * Fix build * Fix * Update snapshots * Specify Xcode version * Cleanup * Update snapshots * Disable tests
- Loading branch information
1 parent
e0f1290
commit 11613c3
Showing
14 changed files
with
137 additions
and
30 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- '.github/workflows/build.yml' | ||
- '**.swift' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/build.yml' | ||
- '**.swift' | ||
concurrency: | ||
group: build-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build-macos: | ||
name: Build macOS | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: '14.3.1' | ||
- name: Run tests | ||
run: swift test -v | ||
build-other-platforms: | ||
runs-on: macos-13 | ||
name: Build ${{ matrix.destination.name }} | ||
strategy: | ||
matrix: | ||
destination: | ||
- | ||
name: iOS | ||
value: "platform=iOS Simulator,name=iPhone 14,OS=latest" | ||
- | ||
name: tvOS | ||
value: "platform=tvOS Simulator,name=Apple TV,OS=latest" | ||
- | ||
name: watchOS | ||
value: "platform=watchOS Simulator,name=Apple Watch Series 8 (41mm),OS=latest" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: '14.3.1' | ||
- name: Build | ||
run: |- | ||
set -o pipefail && NSUnbufferedIO=YES xcodebuild clean build \ | ||
-scheme SmoothGradient \ | ||
-destination '${{ matrix.destination.value }}' \ | ||
| xcpretty | ||
# - name: Run tests | ||
# run: |- | ||
# set -o pipefail && NSUnbufferedIO=YES xcodebuild test \ | ||
# -scheme SmoothGradient \ | ||
# -destination '${{ matrix.destination.value }}' \ | ||
# -sdk iphonesimulator \ | ||
# | xcpretty |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Lint | ||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/lint.yml' | ||
- '.swiftlint.yml' | ||
- '**/*.swift' | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: SwiftLint | ||
uses: norio-nomura/[email protected] | ||
with: | ||
args: --strict | ||
- name: SPM | ||
run: swift package dump-package |
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
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
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
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
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
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
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
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
Binary file modified
BIN
-248 Bytes
(100%)
.../SmoothGradientTests/__Snapshots__/GradientSmoothTests/test_easing_easeIn.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+349 Bytes
(100%)
...oothGradientTests/__Snapshots__/GradientSmoothTests/test_easing_easeInOut.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+469 Bytes
(100%)
...SmoothGradientTests/__Snapshots__/GradientSmoothTests/test_easing_easeOut.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+11.9 KB
(130%)
...s/SmoothGradientTests/__Snapshots__/GradientSmoothTests/test_easing_stops.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.