Commit graph

11 commits

Author SHA1 Message Date
Tim Oliver
f8a339ce16 Updated and reintegrated Danger into GitHub Actions CI
Summary:
Danger is the build tool we've been using to proof-check incoming PRs, including making sure the incoming change is properly documented, and if needed, running SwiftLint on incoming Swift code.

Danger was originally running in our Travis CI implementation, but it wasn't integrated when we switched to GitHub Actions.

This diff updates our Danger dependencies to the latest versions, and integrates Danger into our CI system as a separate build step. I've also modified its SwiftLint setup so it will now lint Swift files in both our sample apps, and the Swift source files in `IGListSwiftKit` itself.

Reviewed By: candance

Differential Revision: D43265158

fbshipit-source-id: 8939b821af36b544fe4d66662b6ce0f99a8f768c
2023-02-28 18:53:02 -08:00
Tim Oliver
2ed59fcf80 Update 'master' branch references to 'main' branch
Summary:
G'day folks! As promised, I'm spending a bit of my free time seeing what I can do to update and refresh the IGListKit repo on GitHub.

I noticed last night some strange behaviour in that the GitHub Actions CI wasn't running when new commits were merged into the main branch. I discovered the cause of this was because the `CI.yml` file still had `master` in its build rules instead of `main`. And once I noticed that, I noticed there were a lot of other references to the main branch being called `master` in a lot of the documentation.

Thankfully within the documentation, GitHub was smart enough to automatically redirect all of the `master` URLs to `main`, so nothing visibly broke, but I definitely think we should update all of that. :)

I went through the entire repo and did a thorough audit in all of its text files, and updated the main branch name accordingly.

Reviewed By: DimaVartanian

Differential Revision: D42990133

fbshipit-source-id: d6b06c40b1b959990856b46b048895e3c55a9870
2023-02-08 18:34:25 -08:00
Jesse Squires
95b779a584 Update .travis.yml and lint.sh, try to fix #1060 and lint errors #trivial
Summary:
project:
- fix file target membership issues in framework targets and test targets
- fix private/internal header imports, which shouldn't be `<IGListKit/` apparently
- fix static analyzer errors

travis:
- always install latest swiftlint
- ~~don't cache bundler, attempts to fix #1060~~
- remove markdown link check

swiftlint:
- make script non-failing if *any* version of swiftlint is installed
- warning if incorrect version is installed
- fail if not installed
- remove `scripts/generate_ci_yaml.rb`, we can just set the config file path directly
Closes https://github.com/Instagram/IGListKit/pull/1068

Differential Revision: D6885575

Pulled By: rnystrom

fbshipit-source-id: 51b7baa73feefcea71d870c1220d0382df484199
2018-02-02 13:16:46 -08:00
Mukesh Thawani
3d9904950a Run pod_setup.sh when Source files are added or removed
Summary:
Issue fixed: #1022

- [ ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/1031

Reviewed By: jeremycohen

Differential Revision: D6657283

Pulled By: rnystrom

fbshipit-source-id: 3033e08dbe1a0fd5b52f254dbefc924693b84b51
2018-01-22 14:53:00 -08:00
Jesse Squires
82b52b2050 Make SwiftLint comment inline
Summary: Closes https://github.com/Instagram/IGListKit/pull/1039

Differential Revision: D6657289

Pulled By: rnystrom

fbshipit-source-id: 806f9624fab2dabe811e5f13a5b45d17db6ddca2
2018-01-03 12:47:33 -08:00
Rizwan Mohamed Ibrahim
22af00307c Error when editing docs directory
Summary:
Issue fixed: #963

- [ ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [X] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/970

Differential Revision: D6161614

Pulled By: rnystrom

fbshipit-source-id: 7fcb71a57453ac0be55909030d6934a1701a49ba
2017-10-26 11:01:47 -07:00
Jesse Squires
0a292a82d4 warn if no milestone on PR
Summary:
😄
Closes https://github.com/Instagram/IGListKit/pull/890

Differential Revision: D5613905

Pulled By: rnystrom

fbshipit-source-id: 1c2b2b46c118741a7b5b84b568a69bf4edb3a199
2017-08-11 12:46:29 -07:00
Hesham Salman
a5d5213e5b Update Dangerfile to be less noisy, close #792
Summary:
Issue fixed: #792

- [ ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [ ] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/795

Differential Revision: D5132076

Pulled By: rnystrom

fbshipit-source-id: 7d68f842e0244d6c6184982ee434dc4da22cc7c6
2017-05-25 13:46:06 -07:00
James Sherlock
a8e4f3089c Add script to detect if Jazzy is installed or not
Summary:
Issue fixed: #744

Pretty much same as Swiftlint's check just inverted and made for jazzy!
Closes https://github.com/Instagram/IGListKit/pull/790

Differential Revision: D5129341

Pulled By: rnystrom

fbshipit-source-id: 4cc0f037aeefb216e5e1f82bcfc5da1c9a15caab
2017-05-25 07:46:13 -07:00
heshamsalman
02f28fc994 Implemented SwiftLint, new PR
Summary:
Replaces #642, #681

Issue ref: #394

Changes from last PR:
- Deleted the shared SwiftLint folder, incl. all files (On the plus side, did this in the quest to get this PR in https://github.com/realm/SwiftLint/pull/1513)
- Changed the build script such that it runs the user's `HomeBrew` installation of SwiftLint instead of the local copy

Integrates SwiftLint into DangerBot.
You may want to append a ?w=1 to the end of the files-changed url to exclude whitespace-only changes.

- [ ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [ ] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/741

Differential Revision: D5068134

Pulled By: jessesquires

fbshipit-source-id: 68d6a57e0072672e38eeb94908d00f26bbd68fbc
2017-05-16 07:31:43 -07:00
Ryan Nystrom
7725d3b8b5 Setup Danger
Summary:
Getting some basic Danger automation up and running. Should see comments from iglistkit-bot.

Issue fixed: #394
Closes https://github.com/Instagram/IGListKit/pull/541

Differential Revision: D4698292

Pulled By: rnystrom

fbshipit-source-id: 32520c053bd624504b76bc0cef4cfb7ea9313a7d
2017-03-13 09:32:00 -07:00