Skip to content

Commit

Permalink
Add linter.yml
Browse files Browse the repository at this point in the history
Perform a check on the coding style of all files added to the master
branch through a pull request. Performed through Github Actions and
Super-linter.
  • Loading branch information
davidxbors authored and razvand committed Mar 31, 2022
1 parent 7ad6081 commit 7bd7707
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Linter

on:
push:
branches-ignore: [master, main]
pull_request:
branches: [master]

jobs:
build:
name: Linter
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3
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@v4
env:
# Don't check already existent files
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7bd7707

Please sign in to comment.