From 85e0d8e96507656ce8fbf1b386713edd471e3471 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Mon, 23 Sep 2019 03:28:06 -0700 Subject: [PATCH] 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 --- .github/workflows/nodejs.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 000000000..13d2926cb --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,23 @@ +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, build, and test + run: | + yarn + yarn test