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
69 lines
1.9 KiB
YAML
69 lines
1.9 KiB
YAML
name: Flipper Node CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
env:
|
|
desktop-directory: ./desktop
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x]
|
|
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: yarn install
|
|
run: yarn
|
|
working-directory: ${{env.desktop-directory}}
|
|
- name: lint
|
|
run: yarn lint
|
|
working-directory: ${{env.desktop-directory}}
|
|
- name: test
|
|
run: yarn test
|
|
working-directory: ${{env.desktop-directory}}
|
|
- name: build linux
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: yarn build --linux
|
|
working-directory: ${{env.desktop-directory}}
|
|
- name: build macos
|
|
if: matrix.os == 'macos-latest'
|
|
run: yarn build --mac --mac-dmg
|
|
working-directory: ${{env.desktop-directory}}
|
|
- name: build windows
|
|
if: matrix.os == 'windows-latest'
|
|
run: yarn build --win
|
|
working-directory: ${{env.desktop-directory}}
|
|
- name: upload linux artifact
|
|
uses: actions/upload-artifact@v1
|
|
if: matrix.os == 'ubuntu-latest'
|
|
with:
|
|
name: Flipper-linux.zip
|
|
path: dist/Flipper-linux.zip
|
|
- name: upload windows artifact
|
|
uses: actions/upload-artifact@v1
|
|
if: matrix.os == 'windows-latest'
|
|
with:
|
|
name: Flipper-win.zip
|
|
path: dist/Flipper-win.zip
|
|
- name: upload mac zip artifact
|
|
uses: actions/upload-artifact@v1
|
|
if: matrix.os == 'macos-latest'
|
|
with:
|
|
name: Flipper-mac.zip
|
|
path: dist/Flipper-mac.zip
|
|
- name: upload mac dmg artifact
|
|
uses: actions/upload-artifact@v1
|
|
if: matrix.os == 'macos-latest'
|
|
with:
|
|
name: Flipper-mac.dmg
|
|
path: dist/Flipper-mac.dmg
|