Skip to content

Commit

Permalink
ci: [ATL-1640] add megalinter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalo-frade-iohk committed Aug 10, 2022
1 parent c0cdb53 commit ea03919
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/megalinter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Linter

on:
push:
branches:
- main
pull_request:

jobs:
lint:
name: Lint changes
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Mega-Linter
id: ml
uses: megalinter/megalinter@v6
env:
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
DISABLE: COPYPASTE,SPELL
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Archive production artifacts
if: success() || failure()
uses: actions/upload-artifact@v2
with:
name: Mega-Linter reports
path: |
report
mega-linter.log

0 comments on commit ea03919

Please sign in to comment.