Skip to content

Commit 0746420

Browse files
committed
purge: Squash history
Purge needed to happen as the history contains large binary files blowing up the sie of the repository. In some cases, when transient dependency PactSwiftMockServer is downloaded it can pull more than 3GB of history.
0 parents  commit 0746420

File tree

188 files changed

+15901
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+15901
-0
lines changed

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report to help us improve.
4+
title: 'Bug: ...'
5+
labels: "bug"
6+
assignees: ''
7+
---
8+
# 🌎 Environment
9+
10+
- Xcode: [e.g. 11.4]
11+
- Platform: [e.g. iOS]
12+
- Version/Release: [e.g. 1.0.2]
13+
- Dependency manager: [e.g. Carthage 0.38]
14+
15+
# 💬 Description
16+
17+
<!-- A clear and concise description of what the bug is. -->
18+
19+
# 🦶 Reproduction Steps
20+
21+
<!-- Provide an example of the setup, specific state and exact steps that would help us reproduce the issue -->
22+
23+
Steps to reproduce the behavior:
24+
1. Do this...
25+
2. Run this `xcrun ...`
26+
3. Etc.
27+
28+
# 🤔 Expected Results
29+
30+
<!-- A clear and concise description of what you expected to happen. -->
31+
32+
# 😲 Actual Results
33+
34+
<!-- A clear and concise description of what actually happened. -->
35+
36+
## 🌳 Logs
37+
38+
```
39+
Include any logs or command output if applicable...
40+
```
41+
42+
## 📄 Stack Traces
43+
44+
```
45+
Include a stack trace if applicable...
46+
```
47+
48+
# 🤝 Relationships
49+
50+
- Related PRs or Issues: #xxx, #yyy

.github/ISSUE_TEMPLATE/feature.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Feature Request
3+
about: Create a feature request to enhance the project.
4+
title: ''
5+
labels: 'enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
# 🗣 Context
11+
12+
<!-- Describe the context... -->
13+
14+
# 💬 Narrative
15+
16+
When ...
17+
I want ...
18+
So that ...
19+
20+
# 📝 Notes
21+
22+
<!-- Provide additional notes... -->
23+
24+
# 🏗 Design
25+
26+
<!-- Provide design example, screenshot, text input/output etc -->
27+
28+
# ✅ Acceptance Criteria
29+
30+
**GIVEN** ...
31+
**WHEN** ...
32+
**THEN** ...
33+
34+
# 🚫 Out of Scope
35+
36+
<!-- Describe what is out of scope -->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Question
3+
about: Just looking for some information about a thing
4+
title: 'Question: ...'
5+
labels: "question"
6+
assignees: ''
7+
---
8+
# ❔ Question
9+
10+
<!-- Clearly articulate what you are trying to get an answer to and what is it you would like to have more clarity about. -->
11+
12+
# 💬 Context
13+
14+
<!-- Providing context about your question will help prepare a better answer. Please also consider providing some information about your system environment, versions of your tools, etc. -->
15+
16+
17+
# 🤝 Relationships
18+
19+
- Other Related Issues: #xxx, #yyy

.github/ISSUE_TEMPLATE/task.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Task
3+
about: Create a technical task that needs doing.
4+
title: 'Task: ...'
5+
labels: "task"
6+
assignees: ''
7+
---
8+
# ❕ Problem Statement
9+
10+
<!-- Clearly describe what the problem this tech task is attempting to address. -->
11+
12+
# 💬 Task Description
13+
14+
<!-- A clear and concise description of the task. -->
15+
16+
# 👩‍🔧 Technical Design Notes
17+
18+
<!-- Provide any technical design notes here. -->
19+
20+
# 🤝 Relationships
21+
22+
- Other Related Issues: #xxx, #yyy

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
- ☝️ Provide a short but descriptive title for this PR.
2+
- 🏷 Remember to label your pull request appropriately and select appropriate code reviewers.
3+
4+
_Provide a more descriptive summary of the changes in this PR here._
5+
6+
# 📝 Summary of Changes
7+
8+
Changes proposed in this pull request:
9+
10+
- Resolves issue #99999 by doing the thing with another thing
11+
- Add more details here...
12+
- ...
13+
14+
# ⚠️ Items of Note
15+
16+
_Document anything here that you think the reviewer(s) of this PR may need to know, or would be of specific interest._
17+
18+
# 🧐🗒 Reviewer Notes
19+
20+
## 💁 Example
21+
22+
_Add an example of using the changes you've implemented (eg, a screenshot or text dump of the output)._
23+
24+
## 🔨 How To Test
25+
26+
_Provide instructions on how to test your changes._

.github/codecov.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
precision: 2
7+
round: down
8+
range: "70...90"
9+
10+
status:
11+
project: yes
12+
patch: yes
13+
changes: no
14+
15+
ignore:
16+
- "Tests/**"
17+
18+
parsers:
19+
gcov:
20+
branch_detection:
21+
conditional: yes
22+
loop: yes
23+
method: no
24+
macro: no
25+
26+
comment:
27+
layout: "header, diff"
28+
behavior: default
29+
require_changes: no

.github/config.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
updateDocsWhiteList:
2+
- BUG
3+
- Chore
4+
- minor
5+
6+
updateDocsComment: >
7+
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would update some of our documentation based on your changes.
8+
requestInfoReplyComment: >
9+
We would appreciate it if you could provide us with more info about this issue/pr!
10+
requestInfoLabelToAdd: request-more-info
11+
12+
newPRWelcomeComment: >
13+
:tada: Thanks so much for opening your first PR in this project! We really do appreciate your help! :heart:
14+
firstPRMergeComment: >
15+
Congrats on merging your first pull request in this project! :tada: You're awesome! :metal:
16+
newIssueWelcomeComment: >
17+
Thanks for opening this issue, a maintainer will get back to you shortly! cc/ @surpher
18+
sentimentBotToxicityThreshold: .7
19+
20+
sentimentBotReplyComment: >
21+
Please be sure to review the code of conduct and be respectful of other users. cc/ @surpher
22+
lockThreads:
23+
toxicityThreshold: .7
24+
numComments: 2
25+
setTimeInHours: 72
26+
replyComment: >
27+
This thread is being locked due to exceeding the toxicity minimums. cc/ @surpher

.github/semantic.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Always validate the PR title and commits (this is important because release notes are automated and we rely on semantic commit titles)
2+
titleAndCommits: true
3+
4+
# By default types specified in commitizen/conventional-commit-types is used.
5+
# See: https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json
6+
# You can override the valid types
7+
types:
8+
- feat
9+
- feature
10+
- fix
11+
- docs
12+
- style
13+
- refactor
14+
- perf
15+
- test
16+
- build
17+
- ci
18+
- chore
19+
- revert
20+
- tech

.github/workflows/build.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- ready_for_review
10+
workflow_dispatch:
11+
12+
env:
13+
RUST_TARGET_PATH: pact-reference
14+
15+
jobs:
16+
test_ios:
17+
name: "🤖 Test iOS"
18+
runs-on: ${{ matrix.host }}
19+
20+
strategy:
21+
fail-fast: true
22+
matrix:
23+
host: [macos-13, macos-14]
24+
platform: [ios, macos]
25+
include:
26+
- platform: ios
27+
scheme: "PactSwift-iOS"
28+
destination: "platform=iOS Simulator,name=iPhone 15 Pro"
29+
- platform: macos
30+
scheme: "PactSwift-macOS"
31+
destination: "arch=x86_64"
32+
- host: macos-13
33+
xcode: 14.3.1
34+
- host: macos-14
35+
xcode: 15.3
36+
37+
env:
38+
SCHEME: "PactSwift-iOS"
39+
DESTINATION: ${{ matrix.destination }}
40+
41+
concurrency:
42+
group: test_${{ matrix.host }}_${{ matrix.xcode }}_iOS_${{ github.ref }}
43+
cancel-in-progress: true
44+
45+
steps:
46+
- name: "🧑‍💻 Checkout repository"
47+
uses: actions/checkout@v3
48+
49+
- name: "🏭 Use Xcode ${{ matrix.xcode }}"
50+
run: sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app
51+
52+
- name: "🧪 Run tests (xcodebuild)"
53+
run: |
54+
set -o pipefail && \
55+
xcodebuild -resolvePackageDependencies && \
56+
xcodebuild test \
57+
-project PactSwift.xcodeproj \
58+
-scheme "$SCHEME"\
59+
-destination "$DESTINATION" \
60+
| xcbeautify
61+
62+
# - name: "⚗️ Run tests (swift)"
63+
# run: |
64+
# swift build
65+
# swift test -c release

.github/workflows/build_pr.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Build Pull Request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '!main'
7+
8+
jobs:
9+
test_macos:
10+
name: "🤖 Test macOS"
11+
runs-on: macos-13
12+
13+
env:
14+
XCODE_VERSION: 14.3.1
15+
16+
concurrency:
17+
group: test_macos13_darwin_$SCHEME_${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
steps:
21+
- name: "🧑‍💻 Checkout repository"
22+
uses: actions/checkout@v3
23+
24+
- name: "⚙️ Use Xcode ${{ env.XCODE_VERSION }}"
25+
run: sudo xcode-select -switch /Applications/Xcode_${{ env.XCODE_VERSION }}.app
26+
27+
- name: "🧰 Prepare tools"
28+
run: |
29+
Scripts/prepare_build_tools
30+
31+
- name: "🧪 xcodebuild clean test"
32+
run: |
33+
set -o pipefail && xcodebuild -resolvePackageDependencies | xcbeautify && xcodebuild clean test -project PactSwift.xcodeproj -scheme "PactSwift-macOS" -destination "arch=x86_64" | xcbeautify
34+
35+
- name: "⚗️ swift test"
36+
run: |
37+
set -o pipefail && swift test -c release
38+
39+
test_ios:
40+
name: "🤖 Test iOS"
41+
runs-on: macos-13
42+
needs: [test_macos]
43+
44+
env:
45+
SCHEME: "PactSwift-iOS"
46+
DESTINATION: "platform=iOS Simulator,name=iPhone 14 Pro"
47+
XCODE_VERSION: 14.3.1
48+
49+
concurrency:
50+
group: test_macos13_ios_$SCHEME_${{ github.ref }}
51+
cancel-in-progress: true
52+
53+
steps:
54+
- name: "🧑‍💻 Checkout repository"
55+
uses: actions/checkout@v3
56+
57+
- name: "⚙️ Use Xcode ${{ env.XCODE_VERSION }}"
58+
run: sudo xcode-select -switch /Applications/Xcode_${{ env.XCODE_VERSION }}.app
59+
60+
- name: "🧰 Prepare tools"
61+
run: |
62+
Scripts/prepare_build_tools
63+
64+
- name: "♘ Test for Carthage"
65+
run: |
66+
set -o pipefail && carthage build --no-skip-current --use-xcframeworks
67+
68+
- name: "🧪 xcodebuild clean test"
69+
run: |
70+
set -o pipefail && xcodebuild -resolvePackageDependencies | xcbeautify && xcodebuild clean test -project PactSwift.xcodeproj -scheme "PactSwift-iOS" -destination "platform=iOS Simulator,name=iPhone 14 Pro" | xcbeautify
71+
72+
- name: "⚗️ swift test"
73+
run: |
74+
swift test -c release
75+
76+
after_success:
77+
needs: [test_ios]
78+
name: "🚚 Build demo projects"
79+
if: github.ref == 'refs/heads/main'
80+
runs-on: ubuntu-latest
81+
82+
steps:
83+
- name: "🚚 Build demo projects"
84+
run: |
85+
curl -X POST https://api.github.com/repos/surpher/pact-swift-examples/dispatches -H 'Accept: application/vnd.github.everest-preview+json' -u ${{ secrets.PACT_SWIFT_TOKEN }} --data '{"event_type":"PactSwift - ${{ github.event.head_commit.message }}"}'
86+

0 commit comments

Comments
 (0)