Skip to content

Commit

Permalink
Create linter.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
alik604 committed Dec 31, 2020
1 parent 9eef4d0 commit 2fa0766
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# NOTE: This would need to be in the root of the repo to use it
# I placed it here because it is associated with this video

name: Lint Code Base

on:
push:
branches-ignore: [master]
# Remove the line above to run when pushing to master
pull_request:
branches: [master]

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v3
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2fa0766

Please sign in to comment.