Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
code

GitHub Action

VTEX Lint action

1.0.0

VTEX Lint action

code

VTEX Lint action

Optionally run a lint task in the root of a project

Installation

Copy and paste the following snippet into your .yml file.

              

- name: VTEX Lint action

uses: vtex/[email protected]

Learn more about this action in vtex/action-lint

Choose a version

Lint action

This is a simple Github action that runs the lint script of a project. If the project doesn't have a package.json nor a lint script, the action is skipped.

Usage

To use it, just add it to your workflow and you're done:

# someworkflow.yml
name: CI Pull Requests

on:
  pull_request:
    branches: [master]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: Use Node.js 12.x
        uses: actions/setup-node@master
        with:
          node-version: 12.x
        env:
          RUNNER_TEMP: /tmp

      - name: yarn install
        run: yarn install --frozen-lockfile

      - name: Lint project
        uses: vtex/action-lint@master