Commit Graph

38 Commits

Author SHA1 Message Date
Pascal Hartig
33cd7d29df Set up coveralls Jest coverage tracking on GitHub (#1392)
Summary:
This adds some pretty nice unit test coverage analysis for our codebase. Especially useful for external pull requests as a gentle nudge to make sure they don't regress the topline number.

To learn more, check out https://github.com/coverallsapp/github-action

Pull Request resolved: https://github.com/facebook/flipper/pull/1392

Test Plan:
{F245038134}

{F245038132}

https://coveralls.io/builds/32250084

Reviewed By: jknoxville

Differential Revision: D22664361

Pulled By: passy

fbshipit-source-id: 4dc1fc79677da41a9d3ea198224c5678ae156ad4
2020-07-22 08:41:14 -07:00
Pritesh Nandgaonkar
a4422a7687 Update pod version after release (#1338)
Summary:
This diff updates the Github workflow to update pod versions after the release is published on Cocoapods.
## Changelog

- Update Github workflow to update the pod versions till the release is published in Cocoapods.

Pull Request resolved: https://github.com/facebook/flipper/pull/1338

Test Plan:
A PR got created with the updated pod versions after the release was pushed.
https://github.com/facebook/flipper/pull/1365

Reviewed By: passy

Differential Revision: D22456857

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 335996bc1ebb6da309d3f60a8f3401559e0a83c7
2020-07-10 02:20:14 -07:00
Pascal Hartig
729549bc9f Set up GitHub test workflow for Packer (#1306)
Summary:
Per title.
Pull Request resolved: https://github.com/facebook/flipper/pull/1306

Test Plan: CI

Reviewed By: mweststrate

Differential Revision: D22285900

Pulled By: passy

fbshipit-source-id: 094cab21cc0f646495e9166435fb6563d50ee2a8
2020-06-29 10:10:39 -07:00
Pascal Hartig
5d033204e8 Update dmg-release.yml (#1296)
Summary:
The second publish job actually works, so let's remove the first one.
Pull Request resolved: https://github.com/facebook/flipper/pull/1296

Test Plan: https://github.com/facebook/flipper/runs/806859866?check_suite_focus=true

Reviewed By: jknoxville

Differential Revision: D22257369

Pulled By: passy

fbshipit-source-id: 72acc2e8ee10ad4514e315d57f4fa44656fce4e3
2020-06-26 07:52:25 -07:00
Pascal Hartig
8ec6a6f664 Fix dmg-release.yml error (#1220)
Summary:
Key was duplicated. :(
Pull Request resolved: https://github.com/facebook/flipper/pull/1220

Reviewed By: mweststrate

Differential Revision: D21861770

Pulled By: passy

fbshipit-source-id: 6affdfbc488628465afc1a59c55ef0ec7ed61dff
2020-06-03 09:49:26 -07:00
Pascal Hartig
9ab4f37f59 DMG upload experiments (#1199)
Summary:
Following some advice to add debugging steps from here: https://github.com/skx/github-action-publish-binaries/issues/19

Also adding an alternative upload action as the issue clearly stems from
something specific to the cURL version on the Action host. This uses
a completely different tool (ghr) for uploading.
Pull Request resolved: https://github.com/facebook/flipper/pull/1199

Test Plan: testinprod

Reviewed By: jknoxville

Differential Revision: D21723887

Pulled By: passy

fbshipit-source-id: cbbc9555283a89e3152c602b87d64976e8dbf4f9
2020-05-28 09:59:54 -07:00
Pritesh Nandgaonkar
96a6172cb7 Increase retry number and increase retry delay (#1140)
Summary:
It increases the retry  number and the retry delay.  Because the previous number of retries were too less. The link to the job which failed is [here](https://github.com/facebook/flipper/pull/1138/checks?check_run_id=649669866).
## Changelog

- Increase retries and retry delay.
Pull Request resolved: https://github.com/facebook/flipper/pull/1140

Test Plan: I relased a path version and it worked successfully. Here is the [job](https://github.com/facebook/flipper/actions/runs/97466572) and it also created the PR(https://github.com/facebook/flipper/issues/1141 )

Reviewed By: passy

Differential Revision: D21440674

Pulled By: priteshrnandgaonkar

fbshipit-source-id: f8131239d30dbd6a4589a6dc2f36893e8df0ae09
2020-05-07 04:31:41 -07:00
Pritesh Nandgaonkar
63a512a910 Github Action to create PR for Podfile.lock (#1097)
Summary:
This PR adds GH action to create PR with the updated Podfile.lock when a new tag is released.

## Changelog

- Add GH action to automatically create PR with updated Podfile.lock.
Pull Request resolved: https://github.com/facebook/flipper/pull/1097

Test Plan: I was not able to test it on a release of tag. But I tested it by triggering the workflow on a push to the branch. It created a PR like [this](https://github.com/facebook/flipper/pull/1110).

Reviewed By: jknoxville

Differential Revision: D21381996

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 2dffa0f71f7e211541728acb06aea5763ae53f47
2020-05-05 03:05:55 -07:00
Anton Nikolaev
fe1c52f2f7 Disable cancelling all Node CI jobs if one of them failed (#1096)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/1096

Disable cancelling all Node CI jobs if one of them failed. This will help to detect whether build is failing on all OSes (linux, mac, windows) or only some of them.

Reviewed By: mweststrate

Differential Revision: D21370606

fbshipit-source-id: 86cb3f1a2eb45e2832c5770414c0ca58e0869b66
2020-05-04 04:11:45 -07:00
Pritesh Nandgaonkar
6f9d82117e Publish pods gh (#1083)
Summary:
This PR adds a github action to publish pods on a new tag. It also tries to fix a race condition which happens when we try to publish FlipperKit pod. During the release of FlipperKit pod, we rely on the newly published Flipper Pod, and sometimes the release of Flipper Pod takes a time to get updated in the cocoapods trunk.

This is a known issue by the Cocoapods and they will be shipping a fix to this in Cocoapods 1.10. Till then we can keep retrying for 5 times.

Ref: https://github.com/CocoaPods/CocoaPods/issues/9502#issuecomment-579486258

## Changelog

- Adds Github actions to publish cocoapods.
- Removes the Circle CI config to publish on cocoapods
Pull Request resolved: https://github.com/facebook/flipper/pull/1083

Test Plan: I tested this action by running it on this PR and it worked fine.

Reviewed By: jknoxville

Differential Revision: D21348084

Pulled By: priteshrnandgaonkar

fbshipit-source-id: f33f3cdef43ae032ad42c94db72323212e40ec67
2020-05-01 09:07:02 -07:00
Pascal Hartig
08e83560e4 Add "debugging" to dmg upload (#1044)
Summary:
Really no clue why this isn't working. Manually running the exact
same curl command works just fine. Adding an `ls` and removing paths
because why not.
Pull Request resolved: https://github.com/facebook/flipper/pull/1044

Test Plan: Next release, sadly.

Reviewed By: nikoant

Differential Revision: D21202248

Pulled By: passy

fbshipit-source-id: e6298e8f8f191f7864e5e48ef1a1ad18b71bf3ab
2020-04-24 01:57:12 -07:00
Pritesh Nandgaonkar
c0a9150dd8 Github action to validate Flipper and FlipperKit pod (#1026)
Summary:
This PR adds Github Action to validate the podspec file. Validation is crucial, if it podspecs don't validate then we won't be able publish pods to the trunk.
## Changelog

Add Github Action to validate FlipperKit and Flipper pod
Pull Request resolved: https://github.com/facebook/flipper/pull/1026

Test Plan: Github Action passes.

Reviewed By: mweststrate

Differential Revision: D21130523

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 0116120b9bbb073516798d4d7f08b347ed9755a3
2020-04-21 04:52:33 -07:00
Pritesh Nandgaonkar
9cbd7cbbdd Add github action for testing Sample app (#1025)
Summary:
This PR adds Github actions to verify that the Sample Objective-C, Swift and Tutorial app build successfully.

## Changelog

Add Github Actions for building Sample Objective-C, Swift and Tutorial app.
Pull Request resolved: https://github.com/facebook/flipper/pull/1025

Test Plan: Github Action passes successfully.

Reviewed By: jknoxville

Differential Revision: D21098106

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 6edd5a3cba74b5ea843abba366c4ad9dc550cf4e
2020-04-20 08:42:22 -07:00
Pascal Hartig
4395b19140 Add "needs attention" label if OP replies (#1022)
Summary:
Adds a GitHub action that applies a label to issues where the original
author has responded to.
Pull Request resolved: https://github.com/facebook/flipper/pull/1022

Test Plan: Try it out?

Reviewed By: jknoxville

Differential Revision: D21089462

Pulled By: passy

fbshipit-source-id: 6a728d1acf710d36835bfc5966648936ceb5586e
2020-04-17 09:32:41 -07:00
Pascal Hartig
99a4884fad Bump Gradle plugin to 3.6.1 (#958)
Summary:
This is in line with the most recent stable Android Studio Release.
Pull Request resolved: https://github.com/facebook/flipper/pull/958

Test Plan:
Used it myself.

Open Source CI required a higher NDK, so let's first check what CI says to that internally now.

Reviewed By: jknoxville

Differential Revision: D20794634

Pulled By: passy

fbshipit-source-id: c32f934634b036ad3c1cad9fc49541e585d64329
2020-04-06 06:43:43 -07:00
Pascal Hartig
406f2f47af Fix DMG publish by running publish step on Ubuntu (#984)
Summary:
The current upload process is broken because the publish step only works on Linux.
This first uploads the binary to artifact storage, then downloads it on Linux and runs the publish step.

Pull Request resolved: https://github.com/facebook/flipper/pull/984

Test Plan:
@public

https://github.com/facebook/flipper/pull/984/checks?check_run_id=563996817

Everything here works apart from the publish action which throws a 400, which is expected as there's no tag/release associated with the PR. We can only really test the entire thing on a new release.

Reviewed By: nikoant

Differential Revision: D20868825

Pulled By: passy

fbshipit-source-id: 97304328ec7eb1243280ca7a9f26e8049869d33b
2020-04-06 06:21:11 -07:00
Anton Nikolaev
3e853157da Do not run tests for "doctor" and "pkg" separately (#983)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/983

This diff fixes broken test jobs on GitHub. Tests for all the packages are already being run by the "yarn test" in the root package, so I'm disabling running them separately.

Reviewed By: jknoxville

Differential Revision: D20868138

fbshipit-source-id: 04a86a8127481fecaee63af1f9fd9c7ad0f4269b
2020-04-06 04:53:26 -07:00
Pascal Hartig
7f91d07718 Fix dmg build (#929)
Summary:
Still had the old paths referenced.
Pull Request resolved: https://github.com/facebook/flipper/pull/929

Test Plan: Next release, I guess?

Reviewed By: nikoant

Differential Revision: D20669327

Pulled By: passy

fbshipit-source-id: e268259065df5a48336ec09b81776771e1124fd0
2020-03-26 06:49:58 -07:00
Anton Nikolaev
85c13bb1f3 Move desktop-related code to "desktop" subfolder (#872)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/872
Move all the JS code related to desktop app to "desktop" subfolder.

The structure of "desktop" folder:
- `src` - JS code of Flipper desktop app executing in Electron Renderer (Chrome) process. This folder also contains all the Flipper plugins in subfolder "src/plugins".
- `static` - JS code of Flipper desktop app bootstrapping executing in Electron Main (Node.js) process
- `pkg` - Flipper packaging lib and CLI tool
- `doctor` - Flipper diagnostics lib and CLI tool
- `scripts` - Build scripts for Flipper desktop app
- `headless` - Headless version of Flipper app
- `headless-tests` - Integration tests running agains Flipper headless version

Reviewed By: passy

Differential Revision: D20249304

fbshipit-source-id: 9a51c63b51b92b758a02fc8ebf7d3d116770efe9
2020-03-14 14:35:17 -07:00
Pascal Hartig
13841b1cf6 DMG build: Add missing yarn install
Summary: This happened: https://github.com/facebook/flipper/runs/496468216?check_suite_focus=true

Reviewed By: mweststrate

Differential Revision: D20361438

fbshipit-source-id: 5b9649ccabf8cc06fbdf28e5f7b45bd7fb5204a9
2020-03-10 03:41:13 -07:00
Pascal Hartig
31c9df92b8 Set up GitHub action for Doctor (#849)
Summary:
Action for Doctor.
Pull Request resolved: https://github.com/facebook/flipper/pull/849

Test Plan: Watch that box below turn green.

Reviewed By: mweststrate

Differential Revision: D20281213

Pulled By: passy

fbshipit-source-id: 87977c3f67605b4f4f080dd6ca7ab921b10a375b
2020-03-05 11:06:01 -08:00
Pascal Hartig
83807f12f6 Build mac dmg in Action (#869)
Summary:
`build --mac` no longer implies building the DMG so the upload step currently fails.
Pull Request resolved: https://github.com/facebook/flipper/pull/869

Reviewed By: mweststrate

Differential Revision: D20283002

Pulled By: passy

fbshipit-source-id: c255ae3a7e4e006e198b79ad8ce79cfd5e80b6a3
2020-03-05 10:48:05 -08:00
Pascal Hartig
b923bcfdf1 Build and upload dmg on release (#852)
Summary:
We're no longer building this internally because it requires a Mac to build and we only use it in OSS.

Pull Request resolved: https://github.com/facebook/flipper/pull/852

Reviewed By: mweststrate

Differential Revision: D20250521

Pulled By: passy

fbshipit-source-id: c1691c62b2db3bc22cb0231040f593a35ec4f17e
2020-03-05 08:14:10 -08:00
Pascal Hartig
07f1ddb1c4 Disable lint pkg (#867)
Summary:
This is too aggressive right now.
Pull Request resolved: https://github.com/facebook/flipper/pull/867

Reviewed By: nikoant

Differential Revision: D20279641

Pulled By: passy

fbshipit-source-id: cdf1d65f0d4137ab689d228846e9c20ec1230b1a
2020-03-05 05:41:29 -08:00
Pascal Hartig
26a5a87158 Set up pkg GitHub Action (#848)
Summary:
Setting up another action for `flipper-pkg`.
Pull Request resolved: https://github.com/facebook/flipper/pull/848

Reviewed By: nikoant

Differential Revision: D20191654

Pulled By: passy

fbshipit-source-id: 18e8fd7f697fe9a7f11c85d13b50322cbd218d12
2020-03-03 09:24:23 -08:00
Pascal Hartig
887a8721c5 Upload dmg artifact on tag (#836)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/836

^

Reviewed By: nikoant

Differential Revision: D20139272

fbshipit-source-id: 0246b571399744b57aa8a222bbcad7238f52fe96
2020-02-27 12:28:13 -08:00
John Knox
51f62ff602 Fix artifact path in android-sample.yml (#820)
Summary:
This workflow is currently building the android app and then trying to upload the mac app (which isn't built) which is failing.

I think it should be uploading the android app instead.
Pull Request resolved: https://github.com/facebook/flipper/pull/820

Reviewed By: passy

Differential Revision: D20035055

Pulled By: jknoxville

fbshipit-source-id: 08367d464a045b47cf1b8b5395fd2151793a23cf
2020-02-24 02:16:59 -08:00
Pascal Hartig
a0cd6e3adb Build Android sample app with GitHub Actions (#810)
Summary:
Getting really pissed off with Travis and this has significantly shorter queue times.

Mind that this probably won't work until the Folly PR is merged.
Pull Request resolved: https://github.com/facebook/flipper/pull/810

Test Plan: CI

Reviewed By: mweststrate

Differential Revision: D19951126

Pulled By: passy

fbshipit-source-id: ed51ad5ec6d4df3a59784dbd31e7c1667593d04f
2020-02-19 04:36:21 -08:00
Pascal Hartig
b4fa7be97c Upload Flipper artifacts from GH Actions (#801)
Summary:
This makes testing and verifying of PRs much easier as you can directly download the resulting artifact from GitHub.

Close https://github.com/facebook/flipper/issues/796.
Pull Request resolved: https://github.com/facebook/flipper/pull/801

Test Plan: https://github.com/facebook/flipper/runs/446036416

Reviewed By: mweststrate

Differential Revision: D19903724

Pulled By: passy

fbshipit-source-id: 9efe37e93b2373d1ec98640496322ad85ea9a21b
2020-02-14 12:55:48 -08:00
Pascal Hartig
83c15219da Add gradle validation (#748)
Summary:
Copied from here: https://github.com/facebook/fresco/pull/2457

Our version is too old to have checksums available, so we first need to merge
https://github.com/facebook/flipper/pull/749.
Pull Request resolved: https://github.com/facebook/flipper/pull/748

Test Plan: GitHub

Reviewed By: mweststrate

Differential Revision: D19447711

Pulled By: passy

fbshipit-source-id: acd1752fa84c14804f0e1012e56763635127d926
2020-01-20 06:04:25 -08:00
Anton Nikolaev
5fd8db294a Add Windows to GitHub Actions CI matrix
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/741

Reviewed By: jknoxville

Differential Revision: D19371114

fbshipit-source-id: 07c6bd71e58011cc3fffa34354546eb773e3fc3d
2020-01-14 03:52:52 -08:00
Anton Nikolaev
5ea4c2211e Run github actions CI on pull requests
Reviewed By: passy

Differential Revision: D19371690

fbshipit-source-id: b15909ea9570cae21fcb27774b10e161bf0d8e98
2020-01-13 07:18:55 -08:00
Pascal Hartig
e50f900758 Build sample release build in Action
Summary: Build it on GitHub.

Reviewed By: jknoxville

Differential Revision: D18657328

fbshipit-source-id: a826bffbee2cb20690579c7ac4ee8f53dc976b6d
2019-11-26 05:30:33 -08:00
John Knox
33a63c9c5b Re-enable github actions (#655)
Summary:
This reverts commit 5bd0cd3d63 and adds back the github actions which were temporarily disabled.
Pull Request resolved: https://github.com/facebook/flipper/pull/655

Reviewed By: passy

Differential Revision: D18656754

Pulled By: jknoxville

fbshipit-source-id: 9dc9a9aa4224f996677ddfbaf37387ae0b066c56
2019-11-22 05:25:17 -08:00
Pascal Hartig
5bd0cd3d63 Remove workflows (#639)
Summary:
sadface

Hopefully this can be reverted quickly but right now we don't have
Actions support in our org and the failures here are causing all
sorts of downstream errors.
Pull Request resolved: https://github.com/facebook/flipper/pull/639

Test Plan: This PR

Reviewed By: cekkaewnumchai

Differential Revision: D18506405

Pulled By: passy

fbshipit-source-id: 325209d91b5d985772195703a3429e49700d7666
2019-11-15 02:55:32 -08:00
John Knox
9c5faa8e96 Add android sample apps to new releases (#615)
Summary:
Now on every new release, a sample app will be built and added to the Github release artifacts.

Adds a Github action to automatically build and attach the android sample app for every flipper release.
This will allow potential users to try out flipper without having to go to the trouble of building their own app.
Pull Request resolved: https://github.com/facebook/flipper/pull/615

Test Plan:
Tested on my private repo:
https://github.com/jknoxville/flipper/releases/tag/v0.1.john

Reviewed By: passy

Differential Revision: D18224747

Pulled By: jknoxville

fbshipit-source-id: 25d2905bd7539faa91974b23a33678168aef29d8
2019-10-30 11:23:28 -07:00
Pascal Hartig
1d7b194abb Run lint and build step (#583)
Summary:
This should just work, but let's see what CI says.
Pull Request resolved: https://github.com/facebook/flipper/pull/583

Reviewed By: jknoxville

Differential Revision: D17906598

Pulled By: passy

fbshipit-source-id: 5de686c8c9b23b101999da938d6e8f9baff7bc86
2019-10-14 08:37:36 -07:00
Pascal Hartig
85e0d8e965 Create nodejs workflow (#555)
Summary:
A very basic first workflow that we can extend to match what we currently have in Travis and hopefully remove that in the near future.
Pull Request resolved: https://github.com/facebook/flipper/pull/555

Test Plan: https://github.com/facebook/flipper/pull/555/checks?check_run_id=232330215

Reviewed By: danielbuechele

Differential Revision: D17525516

Pulled By: passy

fbshipit-source-id: c1ebc1af2260482cfa97faae99f3baa5d5b9046c
2019-09-23 03:29:30 -07:00