From fe5e52a3def2c1562e146099cd832b357fb524bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jefferson=20Gir=C3=A3o?= Date: Mon, 3 Feb 2020 11:32:03 +0100 Subject: [PATCH] chore: build and test frontend --- .github/workflows/frontend.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index e54d08bc6a..9bf725c923 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -1,17 +1,28 @@ -name: CI +name: Frontend CI -on: [push] +on: + push: + paths: + - 'frontend/**' jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12.x] + steps: - - uses: actions/checkout@v2 - - name: Run a one-line script - run: echo Hello, world! - - name: Run a multi-line script + - 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: | - echo Add other actions to build, - echo test, and deploy your project. + yarn install + yarn build --if-present + yarn test + env: + CI: true