Skip to content

Commit 0a116ae

Browse files
authored
Release 1.0.1 (#11)
Release `1.0.1`
2 parents dc4bee3 + 93fd649 commit 0a116ae

File tree

15 files changed

+411
-37
lines changed

15 files changed

+411
-37
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: "🐛 Bug Report"
3+
about: Report a reproducible bug or regression.
4+
title: 'Bug: '
5+
labels: 'bug'
6+
7+
---
8+
9+
<!--
10+
Please provide a clear and concise description of what the bug is. Include
11+
screenshots if needed. Please test using the latest version of the relevant
12+
React packages to make sure your issue has not already been fixed.
13+
-->
14+
15+
Application version:
16+
17+
## Steps To Reproduce
18+
19+
1.
20+
2.
21+
22+
<!--
23+
Your bug will get fixed much faster if we can run your code and it doesn't
24+
have dependencies other than React. Issues without reproduction steps or
25+
code examples may be immediately closed as not actionable.
26+
-->
27+
28+
Link to code example:
29+
30+
<!--
31+
Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
32+
repository on GitHub, or provide a minimal code example that reproduces the
33+
problem. You may provide a screenshot of the application if you think it is
34+
relevant to your bug report. Here are some tips for providing a minimal
35+
example: https://stackoverflow.com/help/mcve.
36+
-->
37+
38+
## The current behavior
39+
40+
41+
## The expected behavior
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: 🛠 Feature request
3+
about: If you have a feature request for the validator, file it here.
4+
labels: 'type: enhancement'
5+
---
6+
7+
**Feature description**
8+
Clearly and concisely describe the feature.
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Bug description
2+
Clearly and concisely describe the problem.
3+
4+
## Solution description
5+
Describe your code changes in detail for reviewers. Explain the technical solution you have provided and how it fixes the issue case.
6+
7+
## Covered unit test cases
8+
- [x] yes
9+
- [x] no
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Feature description
2+
Clearly and concisely describe the feature.
3+
4+
## Solution description
5+
Describe your code changes in detail for reviewers.
6+
7+
## Areas affected and ensured
8+
List out the areas affected by your code changes.
9+
10+
## Covered unit test cases
11+
- [x] yes
12+
- [x] no

.github/workflows/ci.yml

Lines changed: 164 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@ on:
88
pull_request:
99
paths:
1010
- '.swiftlint.yml'
11-
branches:
12-
- main
13-
- dev
14-
15-
concurrency:
16-
group: ci
17-
cancel-in-progress: true
11+
- ".github/workflows/**"
12+
- "Package.swift"
13+
- "Source/**"
14+
- "Tests/**"
1815

1916
jobs:
2017
SwiftLint:
@@ -27,39 +24,176 @@ jobs:
2724
args: --strict
2825
env:
2926
DIFF_BASE: ${{ github.base_ref }}
30-
Latest:
31-
name: Test Latest (iOS, macOS, tvOS, watchOS)
32-
runs-on: macOS-12
27+
macOS:
28+
name: ${{ matrix.name }}
29+
runs-on: ${{ matrix.runsOn }}
30+
env:
31+
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
32+
timeout-minutes: 20
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
include:
37+
- xcode: "Xcode_15.0"
38+
runsOn: macos-13
39+
name: "macOS 13, Xcode 15.0, Swift 5.9.0"
40+
- xcode: "Xcode_14.3.1"
41+
runsOn: macos-13
42+
name: "macOS 13, Xcode 14.3.1, Swift 5.8.0"
43+
steps:
44+
- uses: actions/checkout@v3
45+
- name: ${{ matrix.name }}
46+
run: xcodebuild test -scheme "Validator-Package" -destination "platform=macOS" clean -enableCodeCoverage YES -resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1
47+
- name: Upload coverage reports to Codecov
48+
uses: codecov/codecov-action@v3.1.0
49+
with:
50+
token: ${{ secrets.CODECOV_TOKEN }}
51+
xcode: true
52+
xcode_archive_path: test_output/${{ matrix.name }}.xcresult
53+
- uses: actions/upload-artifact@v4
54+
with:
55+
name: ${{ matrix.name }}
56+
path: test_output
57+
58+
iOS:
59+
name: ${{ matrix.name }}
60+
runs-on: ${{ matrix.runsOn }}
61+
env:
62+
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
63+
timeout-minutes: 20
64+
strategy:
65+
fail-fast: false
66+
matrix:
67+
include:
68+
- destination: "OS=17.0.1,name=iPhone 14 Pro"
69+
name: "iOS 17.0.1"
70+
xcode: "Xcode_15.0"
71+
runsOn: macos-13
72+
- destination: "OS=16.4,name=iPhone 14 Pro"
73+
name: "iOS 16.4"
74+
xcode: "Xcode_14.3.1"
75+
runsOn: macos-13
76+
steps:
77+
- uses: actions/checkout@v3
78+
- name: ${{ matrix.name }}
79+
run: xcodebuild test -scheme "Validator-Package" -destination "${{ matrix.destination }}" clean -enableCodeCoverage YES -resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1
80+
- uses: actions/upload-artifact@v4
81+
with:
82+
name: ${{ matrix.name }}
83+
path: test_output
84+
85+
tvOS:
86+
name: ${{ matrix.name }}
87+
runs-on: ${{ matrix.runsOn }}
3388
env:
34-
DEVELOPER_DIR: "/Applications/Xcode_14.1.app/Contents/Developer"
35-
timeout-minutes: 10
89+
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
90+
timeout-minutes: 20
3691
strategy:
3792
fail-fast: false
3893
matrix:
3994
include:
40-
- destination: "OS=16.1,name=iPhone 14 Pro"
41-
name: "iOS"
42-
scheme: "Validator-Package"
43-
sdk: iphonesimulator
44-
- destination: "OS=16.1,name=Apple TV"
45-
name: "tvOS"
46-
scheme: "Validator-Package"
47-
sdk: appletvsimulator
48-
- destination: "OS=9.1,name=Apple Watch Series 8 (45mm)"
49-
name: "watchOS"
50-
scheme: "Validator-Package"
51-
sdk: watchsimulator
52-
- destination: "platform=macOS"
53-
name: "macOS"
54-
scheme: "Validator-Package"
55-
sdk: macosx
95+
- destination: "OS=17.0,name=Apple TV"
96+
name: "tvOS 17.0"
97+
xcode: "Xcode_15.0"
98+
runsOn: macos-13
99+
- destination: "OS=16.4,name=Apple TV"
100+
name: "tvOS 16.4"
101+
xcode: "Xcode_14.3.1"
102+
runsOn: macos-13
56103
steps:
57104
- uses: actions/checkout@v3
58105
- name: ${{ matrix.name }}
59-
run: xcodebuild test -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean -enableCodeCoverage YES -resultBundlePath "./${{ matrix.sdk }}.xcresult" | xcpretty -r junit
106+
run: xcodebuild test -scheme "Validator-Package" -destination "${{ matrix.destination }}" clean -enableCodeCoverage YES -resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1
60107
- name: Upload coverage reports to Codecov
61108
uses: codecov/codecov-action@v3.1.0
62109
with:
63110
token: ${{ secrets.CODECOV_TOKEN }}
64111
xcode: true
65-
xcode_archive_path: "./${{ matrix.sdk }}.xcresult"
112+
xcode_archive_path: test_output/${{ matrix.name }}.xcresult
113+
- uses: actions/upload-artifact@v4
114+
with:
115+
name: ${{ matrix.name }}
116+
path: test_output
117+
118+
watchOS:
119+
name: ${{ matrix.name }}
120+
runs-on: ${{ matrix.runsOn }}
121+
env:
122+
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
123+
timeout-minutes: 20
124+
strategy:
125+
fail-fast: false
126+
matrix:
127+
include:
128+
- destination: "OS=10.0,name=Apple Watch Series 9 (45mm)"
129+
name: "watchOS 10.0"
130+
xcode: "Xcode_15.0"
131+
runsOn: macos-13
132+
- destination: "OS=9.4,name=Apple Watch Series 8 (45mm)"
133+
name: "watchOS 9.4"
134+
xcode: "Xcode_14.3.1"
135+
runsOn: macos-13
136+
steps:
137+
- uses: actions/checkout@v3
138+
- name: ${{ matrix.name }}
139+
run: xcodebuild test -scheme "Validator-Package" -destination "${{ matrix.destination }}" clean -enableCodeCoverage YES -resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1
140+
- name: Upload coverage reports to Codecov
141+
uses: codecov/codecov-action@v3.1.0
142+
with:
143+
token: ${{ secrets.CODECOV_TOKEN }}
144+
xcode: true
145+
xcode_archive_path: test_output/${{ matrix.name }}.xcresult
146+
- uses: actions/upload-artifact@v4
147+
with:
148+
name: ${{ matrix.name }}
149+
path: test_output
150+
151+
spm:
152+
name: ${{ matrix.name }}
153+
runs-on: ${{ matrix.runsOn }}
154+
env:
155+
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
156+
timeout-minutes: 20
157+
strategy:
158+
fail-fast: false
159+
matrix:
160+
include:
161+
- name: "Xcode 15"
162+
xcode: "Xcode_15.0"
163+
runsOn: macos-13
164+
- name: "Xcode 14"
165+
xcode: "Xcode_14.3.1"
166+
runsOn: macos-13
167+
steps:
168+
- uses: actions/checkout@v3
169+
- name: ${{ matrix.name }}
170+
run: swift build -c release
171+
172+
merge-test-reports:
173+
needs: [iOS, macOS, watchOS, tvOS]
174+
runs-on: macos-13
175+
steps:
176+
- name: Download artifacts
177+
uses: actions/download-artifact@v4
178+
with:
179+
path: test_output
180+
- run: xcrun xcresulttool merge test_output/**/*.xcresult --output-path test_output/final/final.xcresult
181+
- name: Upload Merged Artifact
182+
uses: actions/upload-artifact@v4
183+
with:
184+
name: MergedResult
185+
path: test_output/final
186+
187+
discover-typos:
188+
name: Discover Typos
189+
runs-on: macOS-12
190+
env:
191+
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
192+
steps:
193+
- uses: actions/checkout@v2
194+
- name: Discover typos
195+
run: |
196+
export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.11/bin"
197+
python3 -m pip install --upgrade pip
198+
python3 -m pip install codespell
199+
codespell --ignore-words-list="hart,inout,msdos,sur" --skip="./.build/*,./.git/*"

.github/workflows/danger.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Danger
2+
3+
on:
4+
pull_request:
5+
types: [synchronize, opened, reopened, labeled, unlabeled, edited]
6+
7+
env:
8+
LC_CTYPE: en_US.UTF-8
9+
LANG: en_US.UTF-8
10+
11+
jobs:
12+
run-danger:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: ruby setup
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: 3.1.4
19+
bundler-cache: true
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
- name: Setup gems
23+
run: |
24+
gem install bundler
25+
bundle install --clean --path vendor/bundle
26+
- name: danger
27+
env:
28+
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
29+
run: bundle exec danger --verbose

.swiftlint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
excluded:
22
- Tests
33
- Package.swift
4+
- Package@swift-5.7.swift
5+
- Package@swift-5.8.swift
46
- .build
57

68
# Rules

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,22 @@
22
All notable changes to this project will be documented in this file.
33

44
#### 1.x Releases
5-
- `1.0.x` Releases - [1.0.0](#100)
5+
- `1.0.x` Releases - [1.0.0](#100) | [1.0.1](#101)
6+
7+
## [1.0.1](https://github.com/space-code/validator/releases/tag/1.0.1)
8+
Released on 2024-01-10.
9+
10+
#### Added
11+
- Support `visionOS`
12+
- Added in Pull Request [#10](https://github.com/space-code/validator/pull/10).
13+
- Integrate `danger`
14+
- Added in Pull Request [#9](https://github.com/space-code/validator/pull/9).
15+
- Add an issue template & a pull request template
16+
- Added in Pull Request [#8](https://github.com/space-code/validator/pull/8).
17+
- Update GitHub Action Configuration
18+
- Added in Pull Request [#7](https://github.com/space-code/validator/pull/7).
19+
- Add `Swift Compatibility` & `Platform Compatibility` badges
20+
- Added in Pull Request [#6](https://github.com/space-code/validator/pull/6).
621

722
## [1.0.0](https://github.com/space-code/validator/releases/tag/1.0.0)
823
Released on 2023-09-28.

Dangerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
danger.import_dangerfile(github: 'space-code/dangerfile')

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem 'danger'

0 commit comments

Comments
 (0)