Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vtex/action-lint
Github action to optionally lint a project
https://github.com/vtex/action-lint
Last synced: about 1 month ago
JSON representation
Github action to optionally lint a project
- Host: GitHub
- URL: https://github.com/vtex/action-lint
- Owner: vtex
- Created: 2020-04-17T15:37:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-21T21:18:44.000Z (over 1 year ago)
- Last Synced: 2024-10-31T10:49:57.744Z (2 months ago)
- Language: JavaScript
- Size: 146 KB
- Stars: 5
- Watchers: 19
- Forks: 4
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```yml
# someworkflow.yml
name: CI Pull Requestson:
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
```