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