diff options
| author | Asko Nõmm <asko@nmm.ee> | 2026-02-01 11:28:00 +0200 |
|---|---|---|
| committer | Asko Nõmm <asko@nmm.ee> | 2026-02-01 11:28:00 +0200 |
| commit | 422eeb6ca5b6633000d8ae9dc502385c436f015b (patch) | |
| tree | 207ceda0eecf4f551d059fe9260e1f97938373f3 /.forgejo/workflows/lint.yml | |
| parent | 354067b319d587bd0a178ddc0ed1e79de5460381 (diff) | |
Refactor CI workflows to install PHP and Composer directly; update to use Docker for consistency
Diffstat (limited to '.forgejo/workflows/lint.yml')
| -rw-r--r-- | .forgejo/workflows/lint.yml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml index fad6051..4417fe0 100644 --- a/.forgejo/workflows/lint.yml +++ b/.forgejo/workflows/lint.yml @@ -7,19 +7,26 @@ name: Lint jobs: lint: name: Lint - runs-on: ubuntu-latest + runs-on: docker + container: + image: node:20 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up php 8.3 - uses: shivammathur/setup-php@v2 - with: - php-version: "8.3" + run: | + apt-get update + apt-get install -y php8.3 php8.3-cli php8.3-mbstring php8.3-xml php8.3-curl php8.3-zip unzip + php -v - name: Set-up Composer - uses: php-actions/composer@v6 + run: | + php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" + php composer-setup.php --install-dir=/usr/local/bin --filename=composer + php -r "unlink('composer-setup.php');" + composer --version - name: Run phpstan run: ./vendor/bin/phpstan |
