-
Notifications
You must be signed in to change notification settings - Fork 23
43 lines (40 loc) · 1 KB
/
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
40
41
42
43
---
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: self-hosted
container:
image: ghcr.io/input-output-hk/atala-qa-automation
volumes:
- /nix:/nix
credentials:
username: ${{ secrets.ATALA_GITHUB_ACTOR }}
password: ${{ secrets.ATALA_GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
APPLY_FIXES: none
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
token: ${{ secrets.ATALA_GITHUB_TOKEN }}
fetch-depth: 0
- name: Mega-Linter
id: ml
uses: megalinter/[email protected]
- name: Archive production artifacts
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: Mega-Linter reports
path: |
megalinter-reports
mega-linter.log