name: Lint on: # Trigger the workflow on push or pull request, # but only for the master branch push: branches: - master pull_request: branches: - master jobs: run-linters: name: Run linters runs-on: ubuntu-latest steps: - name: Check out Git repository uses: actions/checkout@v2 - name: Set up Node.js uses: actions/setup-node@v2 with: node-version: 18 - name: Install Node.js dependencies run: yarn - name: Run Prettier run: yarn fmt:check - name: Run ESLint/Flow run: yarn lint