Skip to content

Commit

Permalink
Prepare for release Rugby: Remastered
Browse files Browse the repository at this point in the history
  • Loading branch information
swiftyfinch committed Apr 22, 2023
1 parent a4ce409 commit 7b09909
Show file tree
Hide file tree
Showing 214 changed files with 1,485 additions and 9,375 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/---bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

## Environment (please complete the following information):
- Version [e.g. 1.13.0]
- Version [e.g. 2.0.0]
- Logs (use `rugby doctor`)
- Podfile or Example project (if you can share these)

Expand Down
7 changes: 0 additions & 7 deletions .github/ISSUE_TEMPLATE/---feature-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ assignees: ''

---

> ⚠️<br>
Rugby 1.x is frozen for new feature requests. Please, open only requests with bug fixes.\
That's because there is [the new Rugby2.x version](https://github.com/swiftyfinch/Rugby/releases/tag/2.0.0b7) and it will be released soon.\
This new version isn't back-compatible with the first one and has an absolutely different code base.\
Also, Rugby2.x will be a closed code for the first time. And then I will open source after all preparations.\
Sorry for that freeze time, I hope we continue to develop this product together in the nearest future.

<!-- Example: https://github.com/swiftyfinch/Rugby/issues/93 -->

## Is your feature request related to a problem? Please describe.
Expand Down
17 changes: 5 additions & 12 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,26 @@
> **Note**<br>
> Rugby 1.x is frozen for new feature requests. Please, open only requests with bug fixes.\
That's because there is [the new Rugby2.x version](https://github.com/swiftyfinch/Rugby/releases/tag/2.0.0b7) and it will be released soon.\
This new version isn't back-compatible with the first one and has an absolutely different code base.\
Also, Rugby2.x will be a closed code for the first time. And then I will open source after all preparations.\
Sorry for that freeze time, I hope we continue to develop this product together in the nearest future.

<!--
Hello!
Before you submit your request, please replace the paragraph
below with the relevant details, and complete the steps in the
checklist by placing an 'x' in each box:
- [x] I've completed this task
- [ ] This task isn't completed
Provide links to an existing issue or external references/discussions, if appropriate.
-->

### Description
Please describe your pull request.
<!--Please describe your pull request.-->

### References
Provide links to an existing issue or external references/discussions, if appropriate.
<!--Provide links to an existing issue or external references/discussions, if appropriate.-->

### Checklist
- [ ] I've added at least one test that validates that my change is working, if appropriate
- [ ] I've followed the code style of the rest of the project
- [ ] I've read the [Contribution Guidelines](CONTRIBUTING.md)
- [ ] I've updated the documentation if necessary

❤️ Thanks for contributing to the 🏈 Rugby!
<!--❤️ Thanks for contributing to the 🏈 Rugby!-->
36 changes: 0 additions & 36 deletions .github/scripts/bump.rb

This file was deleted.

8 changes: 4 additions & 4 deletions .github/scripts/checkSpell.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# It's a temporary solution to check the spelling of Docs/*.md and Sources/Rugby/*.swift files
# It's a temporary solution to check the spelling of *.md and Sources/*.swift files
# Need to install https://github.com/fromkk/SpellChecker

docs_output=`find Docs -type f -name '*.md' -exec ~/.mint/bin/SpellChecker --yml .github/scripts/spell_checker_whitelist.yml -- {} \; | grep -v 'no typo'`
docs_output=`find . -type f -name '*.md' -exec ~/.mint/bin/SpellChecker --yml .github/scripts/spell_checker_whitelist.yml -- {} \; | grep -v 'no typo'`
if [[ $docs_output ]]; then echo $docs_output; fi

source_output=`find Sources/Rugby -type f -name '*.swift' -exec ~/.mint/bin/SpellChecker --yml .github/scripts/spell_checker_whitelist.yml -- {} \; | grep -v 'no typo'`
source_output=`find Sources -type f -name '*.swift' -exec ~/.mint/bin/SpellChecker --yml .github/scripts/spell_checker_whitelist.yml -- {} \; | grep -v 'no typo'`
if [[ $source_output ]]; then echo $source_output; fi

if [[ $docs_output || $source_output ]]; then exit 1; fi
if [[ $docs_output || $source_output ]]; then exit 1; fi
26 changes: 26 additions & 0 deletions .github/scripts/spell_checker_whitelist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,29 @@ whiteList:
- mlch
- utsname
- uname
- cocoapods
- leavez
- amazonaws
- realized
- fbadge
- ftype
- dswift
- swifty
- swiftish
- fpackages
- fapi
- fswiftpackageindex
- swiftpackageindex
- didn
- optimizations
- clt
- nexport
- zshrc
- zshenv
- th
- finalized
- fswiftyfinch
- dplatforms
- svg
- yandex
- faq
196 changes: 8 additions & 188 deletions .github/workflows/regress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,209 +3,29 @@ name: Regress
on: [workflow_dispatch, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: norio-nomura/[email protected]
with: { args: --strict }

spelling:
runs-on: macos-11.0
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: fjcaetano/[email protected]
with: { package: fromkk/SpellChecker }
- name: Check spelling
run: sh .github/scripts/checkSpell.sh

rugby-13:
runs-on: macos-11.0
rugby:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with: { xcode-version: '13.0' }
with: { xcode-version: '14.1' }
- name: Build Rugby
run: |
swift build -c release
path=`swift build -c release --show-bin-path`
strip -rSTx "$path/rugby"
echo "rugby_path=$path/rugby" >> $GITHUB_ENV
swift run rugby --version
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: rugby
path: ${{ env.rugby_path }}
#==========================================================================
cache-both:
needs: rugby-13
runs-on: macos-11.0
env: { project-directory: ./TestProject }
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with: { name: rugby }
- run: chmod +x rugby && echo `pwd` >> $GITHUB_PATH
- run: rugby -h
- uses: maxim-lobanov/setup-xcode@v1
with: { xcode-version: '12.5.1' }

# Prepare TestProject
- uses: ruby/setup-ruby@v1
with: { ruby-version: 2.7.2, bundler-cache: true, working-directory: TestProject }
- run: bundle
working-directory: ${{ env.project-directory }}
- uses: actions/cache@v2
with:
path: TestProject/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('Podfile.lock') }}
restore-keys: ${{ runner.os }}-pods-

# Tests
- name: Tests
run: bundle exec fastlane cache_both
working-directory: ${{ env.project-directory }}
#==========================================================================
cache-exclude:
needs: rugby-13
runs-on: macos-11.0
env: { project-directory: ./TestProject }
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with: { name: rugby }
- run: chmod +x rugby && echo `pwd` >> $GITHUB_PATH
- run: rugby -h
- uses: maxim-lobanov/setup-xcode@v1
with: { xcode-version: '12.5.1' }

# Prepare TestProject
- uses: ruby/setup-ruby@v1
with: { ruby-version: 2.7.2, bundler-cache: true, working-directory: TestProject }
- run: bundle
working-directory: ${{ env.project-directory }}
- uses: actions/cache@v2
with:
path: TestProject/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('Podfile.lock') }}
restore-keys: ${{ runner.os }}-pods-

# Tests
- name: Tests
run: bundle exec fastlane cache_exclude
working-directory: ${{ env.project-directory }}
#==========================================================================
cache-config:
needs: rugby-13
runs-on: macos-11.0
env: { project-directory: ./TestProject }
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with: { name: rugby }
- run: chmod +x rugby && echo `pwd` >> $GITHUB_PATH
- run: rugby -h
- uses: maxim-lobanov/setup-xcode@v1
with: { xcode-version: '12.5.1' }

# Prepare TestProject
- uses: ruby/setup-ruby@v1
with: { ruby-version: 2.7.2, bundler-cache: true, working-directory: TestProject }
- run: bundle
working-directory: ${{ env.project-directory }}
- uses: actions/cache@v2
with:
path: TestProject/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('Podfile.lock') }}
restore-keys: ${{ runner.os }}-pods-

# Tests
- name: Tests
run: bundle exec fastlane cache_different_config
working-directory: ${{ env.project-directory }}
#==========================================================================
drop:
needs: rugby-13
runs-on: macos-11.0
env: { project-directory: ./TestProject }
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with: { name: rugby }
- run: chmod +x rugby && echo `pwd` >> $GITHUB_PATH
- run: rugby -h
- uses: maxim-lobanov/setup-xcode@v1
with: { xcode-version: '12.5.1' }

# Prepare TestProject
- uses: ruby/setup-ruby@v1
with: { ruby-version: 2.7.2, bundler-cache: true, working-directory: TestProject }
- run: bundle
working-directory: ${{ env.project-directory }}
- uses: actions/cache@v2
with:
path: TestProject/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('Podfile.lock') }}
restore-keys: ${{ runner.os }}-pods-

# Tests
- name: Tests
run: bundle exec fastlane drop_tests
working-directory: ${{ env.project-directory }}
#==========================================================================
focus:
needs: rugby-13
runs-on: macos-11.0
env: { project-directory: ./TestProject }
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with: { name: rugby }
- run: chmod +x rugby && echo `pwd` >> $GITHUB_PATH
- run: rugby -h
- uses: maxim-lobanov/setup-xcode@v1
with: { xcode-version: '12.5.1' }

# Prepare TestProject
- uses: ruby/setup-ruby@v1
with: { ruby-version: 2.7.2, bundler-cache: true, working-directory: TestProject }
- run: bundle
working-directory: ${{ env.project-directory }}
- uses: actions/cache@v2
with:
path: TestProject/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('Podfile.lock') }}
restore-keys: ${{ runner.os }}-pods-

# Tests
- name: Tests
run: bundle exec fastlane focus_tests
working-directory: ${{ env.project-directory }}
#==========================================================================
plans:
needs: rugby-13
runs-on: macos-11.0
env: { project-directory: ./TestProject }
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with: { name: rugby }
- run: chmod +x rugby && echo `pwd` >> $GITHUB_PATH
- run: rugby -h
- uses: maxim-lobanov/setup-xcode@v1
with: { xcode-version: '12.5.1' }

# Prepare TestProject
- uses: ruby/setup-ruby@v1
with: { ruby-version: 2.7.2, bundler-cache: true, working-directory: TestProject }
- run: bundle
working-directory: ${{ env.project-directory }}
- uses: actions/cache@v2
with:
path: TestProject/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('Podfile.lock') }}
restore-keys: ${{ runner.os }}-pods-

# Tests
- name: Tests
run: bundle exec fastlane plans_tests
working-directory: ${{ env.project-directory }}
Loading

0 comments on commit 7b09909

Please sign in to comment.