From 40896fedf2cfd4c2f58aeb69b1923b28d8f130a5 Mon Sep 17 00:00:00 2001 From: Cristina Guncay Date: Fri, 20 Mar 2020 09:26:39 -0500 Subject: [PATCH] add git actions --- .github/workflows/run_test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/run_test.yml diff --git a/.github/workflows/run_test.yml b/.github/workflows/run_test.yml new file mode 100644 index 000000000..3b2e4d79a --- /dev/null +++ b/.github/workflows/run_test.yml @@ -0,0 +1,29 @@ +name: Node.js CI + +on: + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: macos-latest + + strategy: + matrix: + node-version: [12.x] + + steps: + - name: Clone and checkout branch + uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm install + - run: npm run build --if-present + - name: Run the test + run: npm test + env: + CI: true