Skip to content

Commit 93db107

Browse files
committed
Add mago.yml for GitHub Actions
1 parent c8302c7 commit 93db107

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/mago.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Mago
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
pull_request:
9+
10+
jobs:
11+
run:
12+
name: Run Mago
13+
runs-on: 'ubuntu-latest'
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
18+
- name: Setup PHP
19+
uses: ./.github/actions/setup-php
20+
21+
- name: Install Mago
22+
run: composer config --no-plugins allow-plugins.carthage-software/mago true; composer require --dev carthage-software/mago:1.9.1
23+
24+
- name: Run Mago
25+
run: ./vendor/bin/mago --config .mago/mago.toml analyze

0 commit comments

Comments
 (0)