Comments (5)
Please provide the workflow you are using.
Also please ensure that you are specifying runner
env as self-hosted
.
https://github.com/shivammathur/setup-php?tab=readme-ov-file#self-hosted-setup
from setup-php.
It looks like I had some workflows that didn't have the self-hosted env, which is probably why this occurred.
I'll make this change and see if this resolves the issue by itself.
from setup-php.
@Sn0wCrack
Following up on this, were you able to fix it on your end.
from setup-php.
Sorry for not updating, had not had a change to test the changes after implementing them, took some time to go through all of our repositories as well, only a handful of workflows were missing the environment variable.
I've tested it again now after adding the runner
environment variable and I still receive these warnings on those servers.
I'm assuming this fix won't be retroactive and I might have to manually remove the installed PHP 8.3 to have the action pull down the correct files again?
Here's my action workflow file for reference as well:
name: Continuous Integration
# Controls when the workflow will run
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- '**.php'
- '**.js'
- '**.vue'
- '**.ts'
- '**.json'
- '**.lock'
tags-ignore:
- 'v*'
pull_request:
branches: [ master ]
paths:
- '**.php'
- '**.js'
- '**.vue'
- '**.ts'
- '**.json'
- '**.lock'
jobs:
lint:
runs-on: [ self-hosted, Linux, ci ]
strategy:
matrix:
php-version: ['8.3']
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: bcmath, ctype, fileinfo, json, mbstring, openssl, pdo, pdo_mysql tokenizer
tools: composer
env:
runner: self-hosted
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: 'lts/iron'
- name: Install JavaScript Dependencies
run: yarn install --frozen-lockfile
- name: Install PHP Dependencies
uses: ramsey/composer-install@v3
- name: Lint JavaScript
run: yarn lint
- name: Lint PHP
run: ./vendor/bin/pint --test
test:
runs-on: [ self-hosted, Linux, ci ]
services:
database:
image: mariadb:10
env:
MYSQL_DATABASE: database
MYSQL_ALLOW_EMPTY_PASSWORD: false
MYSQL_ROOT_PASSWORD: password
ports:
- 3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
cache:
image: redis:7
ports:
- 6379
strategy:
matrix:
php-version: ['8.3']
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: bcmath, ctype, fileinfo, json, mbstring, openssl, pdo, pdo_mysql tokenizer, redis, igbinary, gd, imagick
tools: composer
coverage: pcov
env:
runner: self-hosted
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: 'lts/iron'
- name: Install JavaScript Dependencies
run: yarn install --frozen-lockfile
- name: Install PHP Dependencies
uses: ramsey/composer-install@v3
- name: Build JavaScript
run: yarn dev
- name: Setup tasks
run: |
touch .env
php artisan storage:link
- name: Run Tests
run: php artisan test --coverage --parallel
from setup-php.
Yes, it will require manually removing the previously installed version.
from setup-php.
Related Issues (20)
- Broken on macos-13-xlarge HOT 1
- php-version parameter is not respected on 8.3.x HOT 1
- macos-latest on PHP 8.1 failing HOT 11
- setup fails with libicuio.74.dylib error HOT 6
- Apple ARM GitHub runners fail on PHP HOT 3
- php-version: 'latest' and 'dev' HOT 2
- deprecation warnings not emitted HOT 2
- ssh2 failing to install with php 8.2 HOT 8
- Imposible install apc, mycript, PHP 7.3, 7.4. HOT 3
- Support foal extension
- Unable to load dynamic library zip.so HOT 3
- PHP8.3 `RecursiveDirectoryIterator::__construct : Failed to open directory: Not a directory` HOT 1
- Unexpected Installation of Additional PHP Extensions in [email protected] Compared to [email protected] HOT 1
- Improve error reporting when ubuntu launchpad is down? HOT 4
- Sporadic PHP Extension Installation Failure HOT 4
- memcached Could not install memcached on PHP 8.2.18 HOT 4
- Ioncube error using php 8.1 HOT 4
- Add `shipmonk/composer-dependency-analyser` tool HOT 1
- Using Ubuntu 24.04 runner doesn't setup < PHP 8.3 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-php.