diff options
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 |
