-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update config template with new jobs
- Loading branch information
Showing
1 changed file
with
24 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,42 @@ | ||
# EXAMPLE USAGE: | ||
# | ||
# Refer for explanation to following link: | ||
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md | ||
# https://evilmartians.github.io/lefthook/configuration/ | ||
# | ||
# pre-push: | ||
# commands: | ||
# packages-audit: | ||
# tags: frontend security | ||
# jobs: | ||
# - name: packages audit | ||
# tags: | ||
# - frontend | ||
# - security | ||
# run: yarn audit | ||
# gems-audit: | ||
# tags: backend security | ||
# | ||
# - name: gems audit | ||
# tags: | ||
# - backend | ||
# - security | ||
# run: bundle audit | ||
# | ||
# pre-commit: | ||
# parallel: true | ||
# commands: | ||
# eslint: | ||
# jobs: | ||
# - run: yarn eslint {staged_files} | ||
# glob: "*.{js,ts,jsx,tsx}" | ||
# run: yarn eslint {staged_files} | ||
# rubocop: | ||
# tags: backend style | ||
# | ||
# - name: rubocop | ||
# glob: "*.rb" | ||
# exclude: '(^|/)(application|routes)\.rb$' | ||
# exclude: | ||
# - config/application.rb | ||
# - config/routes.rb | ||
# run: bundle exec rubocop --force-exclusion {all_files} | ||
# govet: | ||
# tags: backend style | ||
# | ||
# - name: govet | ||
# files: git ls-files -m | ||
# glob: "*.go" | ||
# run: go vet {files} | ||
# scripts: | ||
# "hello.js": | ||
# | ||
# - script: "hello.js" | ||
# runner: node | ||
# "any.go": | ||
# | ||
# - script: "hello.go" | ||
# runner: go run |