All Projects → goto-bus-stop → standard-action

goto-bus-stop / standard-action

Licence: other
Github Action to lint with `standard` and friends

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to standard-action

clojure-dependency-update-action
A simple GitHub Actions job to create Pull Requests for outdated dependencies in clojure projects
Stars: ✭ 37 (+146.67%)
Mutual labels:  actions, github-action
action-dynamic-readme
~ Dynamic ReadME Generator ~
Stars: ✭ 29 (+93.33%)
Mutual labels:  actions, github-action
Snazzy
Format JavaScript Standard Style as Stylish (i.e. snazzy) output
Stars: ✭ 381 (+2440%)
Mutual labels:  lint, standard
github-run-tests-action
mabl Github Actions implementation
Stars: ✭ 39 (+160%)
Mutual labels:  actions, github-action
aws-assume-role
GitHub action to assume subsequent AWS roles
Stars: ✭ 22 (+46.67%)
Mutual labels:  actions, github-action
rubocop-linter-action
Rubocop Linter Action: A GitHub Action to run Rubocop against your code!
Stars: ✭ 86 (+473.33%)
Mutual labels:  lint, actions
actionlint
Static checker for GitHub Actions workflow files
Stars: ✭ 1,385 (+9133.33%)
Mutual labels:  lint, actions
action-deploy-aws-static-site
Batteries-included Github action that deploys a static site to AWS Cloudfront, taking care of DNS, SSL certs and S3 buckets
Stars: ✭ 70 (+366.67%)
Mutual labels:  actions, github-action
github-action-wpe-site-deploy
A GitHub Action to deploy code directly to WP Engine.
Stars: ✭ 116 (+673.33%)
Mutual labels:  actions, github-action
recent-activity
Add your recent activity to your profile readme!
Stars: ✭ 87 (+480%)
Mutual labels:  actions, github-action
build-godot-action
GitHub action that builds a Godot project for multiple platforms
Stars: ✭ 62 (+313.33%)
Mutual labels:  actions, github-action
action-netlify-deploy
🙌 Netlify deployments via GitHub actions
Stars: ✭ 32 (+113.33%)
Mutual labels:  actions, github-action
action-sync-node-meta
GitHub Action that syncs package.json with the repository metadata.
Stars: ✭ 25 (+66.67%)
Mutual labels:  actions, github-action
chart-testing-action
A GitHub Action to lint and test Helm charts
Stars: ✭ 139 (+826.67%)
Mutual labels:  lint, actions
qodana-action
⚙️ Scan your Java, Kotlin, PHP, Python, JavaScript, TypeScript projects at GitHub with Qodana
Stars: ✭ 112 (+646.67%)
Mutual labels:  actions, github-action
action-my-broken-link-checker
A GitHub Action for checking broken links
Stars: ✭ 32 (+113.33%)
Mutual labels:  actions, github-action
ssh2actions
Connect to GitHub Actions VM via SSH for interactive debugging
Stars: ✭ 62 (+313.33%)
Mutual labels:  actions, github-action
overview
Automate your workflows with GitHub actions for MATLAB.
Stars: ✭ 40 (+166.67%)
Mutual labels:  actions, github-action
clang-format-action
GitHub Action for clang-format checking
Stars: ✭ 48 (+220%)
Mutual labels:  actions, github-action
changed-files
Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.
Stars: ✭ 733 (+4786.67%)
Mutual labels:  actions, github-action

⚠️ Archived

This action's purpose was to provide linting annotations in PRs. Github now provides that feature by default, so you do not need this.

Instead of this action, use:

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      # This sets up a "problem matcher" for eslint and standard
      - uses: actions/setup-node@v2
      # Now you can just run eslint or standard yourself
      - run: npx standard

The old readme is archived below.


standard-action

Github Action to lint with `standard`

Usage - License: Apache-2.0

Screenshot with Annotations

Usage

In a Github Actions workflow file, do something like:

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: goto-bus-stop/standard-action@v1
        with:
          # optionally select a different, standard-like linter
          # linter: semistandard

          # optionally select a different eslint formatter for the log output, default 'stylish'
          # formatter: tap

          # limit the files to lint, default '**/*.js'
          # files: src/*.js

          # show errors in the the github diff UI
          annotate: true

        # Allow the action to add lint errors to the github diff UI
        env:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

To use a different linter than standard, or use a specific version of standard, add it as a devDependency to your project, and run npm install in your workflow so the action can require() it.

- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm install
- uses: goto-bus-stop/standard-action@v1
  with:
    linter: semistandard

If you do not install any linter yourself, this action will use Standard v14.

Multiple globs

with.files must contain a string, so to pass multiple globs, you need to use a single glob string:

- uses: goto-bus-stop/standard-action@v1
  with:
    files: '{src/**/*.js,test/**/*.js}'

License

Apache-2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].