Commit Graph

21 Commits

Author SHA1 Message Date
Pranav Yadav
94a2e33cb8 CI - Bump Node JS to v18 in CI Pipeline (#4898)
Summary:
This diff bumps Node JS to `v18` in CI Pipeline.
Related PR:
1. https://github.com/facebook/flipper/issues/4897

## Changelog

[General] [Changed] - Bump Node JS to `v18` in CI Pipeline

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

Test Plan: - Should pass tests & builds successfully

Reviewed By: lblasa

Differential Revision: D47128828

Pulled By: passy

fbshipit-source-id: b8d829b273898bf5e297560fbbdbafba80285b33
2023-06-30 03:25:05 -07:00
Pranav Yadav
14068f1ea8 nodejs - Bump actions/- setup-node@v3.6.0, checkout@v3.5.3 & upload-artifact@v3.1.2 (#4865)
Summary:
This diff bumps `actions/setup-node@v3.6.0`, `actions/checkout@v3.5.3` & `actions/upload-artifact@v3.1.2`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `actions/setup-node@v3.6.0` changelog: https://github.com/actions/setup-node/releases/tag/v3.6.0
- `actions/upload-artifact@v3.1.2` changelog: https://github.com/actions/upload-artifact/releases/tag/v3.1.2

## Changelog:

[GENERAL] [SECURITY] - [Actions] `nodejs` - Bump `actions/`- `setup-node@v3.6.0`, `checkout@v3.5.3` & `upload-artifact@v3.1.2`

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

Test Plan: - Workflow should run and work as usual.

Reviewed By: lblasa

Differential Revision: D47128838

Pulled By: passy

fbshipit-source-id: 2aba3f1b6d5f4819cbf13857cdb24b23bfc5cd84
2023-06-29 11:19:01 -07:00
Pascal Hartig
9451911709 Fix windows build (for real this time?) (#3289)
Summary:
This previous attempt didn't work. Not even sure what happens now, it seems to just return the result of a boolean evaluation? Cool.

Still haven't verified that this works in the release build but noticed that we do effectively the same in the build step. By upgrading to the same revision of the action we use and then switching from `&&` to simply `;`, we can be reasonably sure that this will work now.

The alternative would be to switch to `pwsh` which appears to be the new name. `powershell` is the default shell and seems to be an older version without support for `&&`. I honestly never want to touch this or read about it again, so let's go with the simpler option.

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

Reviewed By: aigoncharov

Differential Revision: D33582853

Pulled By: passy

fbshipit-source-id: 7c70ff360a5c327139b6ecb5463e85883a2caf9d
2022-01-14 06:30:38 -08:00
Pascal Hartig
111177b44e Upgrade to Node 14 for Actions (#2928)
Summary:
I believe that matches what we have internally. This has been causing some upgrades to fail.

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

Reviewed By: aigoncharov

Differential Revision: D31324394

Pulled By: passy

fbshipit-source-id: eec38dcc6322e3e8957bbc20bf74d343855be8c0
2021-10-01 04:40:09 -07:00
Pascal Hartig
4909296d86 Wrap yarn install with a retry (#2685)
Summary:
Often fails with things like "can't resolve github.com" ... I don't think there's a fix for that apart from trying again.

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

Test Plan: Waiting for things to turn green here.

Reviewed By: timur-valiev

Differential Revision: D30301456

Pulled By: passy

fbshipit-source-id: 585758284e18bd02ab2a905b6f110a32099b861e
2021-08-13 03:34:23 -07:00
Pascal Hartig
77abba6459 Persist yarn cache (#2137)
Summary:
The time we spend on this isn't much. However, we quite often see flakiness coming from yarnpkg not responding which should hopefully be addressed by this.

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

Test Plan: CI

Reviewed By: mweststrate

Differential Revision: D27461679

Pulled By: passy

fbshipit-source-id: c7144d2a8426c078f9cab2d3a94662908a03a182
2021-03-31 06:40:40 -07:00
Michel Weststrate
54d36876b6 Upgrade to Electron 10 (#1532)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/1532

Upgrade to Electron 10, in an attempt to fix random hard Electron crashes. Didn't fix it, but given the changelog of Electron with all the bug fixes, seems to be a good idea nonetheless :)

Changelog: Flipper now uses Electron 10

Reviewed By: nikoant

Differential Revision: D23565000

fbshipit-source-id: 3f07b8cf8c438147bde5314698d20046ac9f94cf
2020-09-17 09:44:27 -07:00
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
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
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
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
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
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
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
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
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