From 33a63c9c5bfe75a8ec7872f4445e6de100a36102 Mon Sep 17 00:00:00 2001 From: John Knox Date: Fri, 22 Nov 2019 05:23:52 -0800 Subject: [PATCH] Re-enable github actions (#655) Summary: This reverts commit 5bd0cd3d63dff12d9d523c45399cbd7e2c878318 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 --- .github/workflows/android.yml | 27 +++++++++++++++++++++++++++ .github/workflows/nodejs.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 .github/workflows/android.yml create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 000000000..8a2547ac8 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,27 @@ +name: Publish Sample App + +on: + release: + types: [created] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Gradle + run: ./gradlew sample:assembleDebug + - name: Rename apk + run: mv android/sample/build/outputs/apk/debug/sample-debug.apk SampleApp-android.apk + - name: Upload + uses: skx/github-action-publish-binaries@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: 'SampleApp-android.apk' diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 000000000..c873a1236 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,27 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x] + + 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 + - name: lint + run: yarn lint + - name: test + run: yarn test + - name: build + run: yarn build --linux