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
56
57
58
59
60
61
62
63
64
65
66
67
name: Ecosystem Check
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
check:
name: Run against downstream projects
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Mago
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Build Mago
run: cargo build --release --locked
- name: Install PHP and Composer
uses: shivammathur/setup-php@master
with:
php-version: "8.4"
tools: "composer:v2"
- name: Test against carthage-software/cel-php
run: |
set -e
echo "::group::Cloning and setting up carthage-software/cel-php"
git clone --branch main --depth 1 https://github.com/carthage-software/cel-php.git cel-project
cd cel-project
composer install --no-interaction --prefer-dist --optimize-autoloader --ignore-platform-reqs
echo "::endgroup::"
echo "::group::Running Mago analyze on carthage-software/cel-php"
${{ github.workspace }}/target/release/mago --config config/mago.toml analyze --reporting-format=count
echo "::endgroup::"
- name: Test against azjezz/psl
run: |
set -e
echo "::group::Cloning and setting up azjezz/psl"
git clone --branch next --depth 1 https://github.com/azjezz/psl.git psl-project
cd psl-project
composer install --no-interaction --prefer-dist --optimize-autoloader --ignore-platform-reqs
echo "::endgroup::"
echo "::group::Running Mago analyze on azjezz/psl"
${{ github.workspace }}/target/release/mago --config config/mago.toml analyze --reporting-format=count
echo "::endgroup::"