-
Notifications
You must be signed in to change notification settings - Fork 223
55 lines (45 loc) · 1.28 KB
/
mago.yml
File metadata and controls
55 lines (45 loc) · 1.28 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
name: Mago (Code Quality Checks, Non Blocking)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
mago:
name: Mago Quality Checks
runs-on: ubuntu-latest
# Surfaces quality issues as annotations without blocking merges
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Mago
uses: actions/cache@v4
with:
path: .mago
key: ${{ runner.os }}-mago-${{ hashFiles('mago.toml') }}
restore-keys: |
${{ runner.os }}-mago-
- name: Setup Mago
uses: nhedger/setup-mago@v1
with:
version: "latest"
token: ${{ github.token }}
- name: Formatting
id: format
continue-on-error: true
run: mago format --check
- name: Linting
id: lint
continue-on-error: true
run: mago lint --reporting-format=github
- name: Static Analysis
id: analyze
continue-on-error: true
run: mago analyze --reporting-format=github
- name: Final status
if: ${{ always() }}
run: |
echo "format=${{ steps.format.outcome }} lint=${{ steps.lint.outcome }} analyze=${{ steps.analyze.outcome }}"