-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (36 loc) · 912 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
name: Linter
# Default shell is `sh`
# which is old, use bourne-again version instead
defaults:
run:
shell: bash
on:
pull_request:
jobs:
lint:
name: Lint changes
runs-on: ubuntu-latest
env:
APPLY_FIXES: none
DISABLE: COPYPASTE,SPELL
GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
DISABLE_LINTERS: REPOSITORY_GITLEAKS
DISABLE_ERRORS_LINTERS: PROTOBUF_PROTOLINT
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
token: ${{ secrets.ATALA_GITHUB_TOKEN }}
fetch-depth: 0
# - name: Mega-Linter
# id: ml
# uses: megalinter/megalinter@v6
- name: Archive production artifacts
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: Mega-Linter reports
path: |
megalinter-reports
mega-linter.log