radar/twist-v2

View on GitHub
.github/workflows/frontend.yml

Summary

Maintainability
Test Coverage
# This is a basic workflow to help you get started with Actions

name: Frontend checks

# Controls when the action will run.
on:
  # Triggers the workflow on push or pull request events but only for the master branch
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

jobs:
  frontend:
    defaults:
      run:
        working-directory: "frontend"
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      - uses: actions/checkout@v2

      - name: Setup Node.js environment
        uses: actions/setup-node@v2.1.4
        with:
          node-version: 14.15.1

      - run: "npm install -g yarn"

      - run: "yarn"

      - name: TypeScript check
        run: yarn tsc

      - name: ESLint check
        run: yarn lint