Category : github-actions

I was using travisCI for my continuous integration but I would like to now move to github pages Below was my previous .travis.yml file. which was working env: global: – XDEBUG_MODE=coverage dist: bionic language: php php: – 7.4.15 services: – mysql cache: directories: – node_modules – vendor before_script: – cp .env.travis .env – cp .env.testing.travis ..

Read more

i’m trying to add a foreign ID column to an existing table. I’ve done so successfully and all my PHPunit tests pass locally: Schema::table(‘responses’, function (Blueprint $table) { $table->foreignId(‘road_id’) ->after(‘id’) ->nullable() ->constrained(); }); I have github actions setup and all the PHPunit tests seem to fail with the Error: Cannot add a NOT NULL column ..

Read more

I am on php 7.4 and using phpstan action in github (latest) actions-x/[email protected] I am getting the following error return type has no value type specified in iterable type array on the following method: class A{ /** * @return array */ protected function get_next_bl():array{ return [ ["some string",[]] ]; } } It is not clear ..

Read more

Github workflow fails after installing phpunit/phpunit: ^9.5. Here I’ve attached the error message. Here is the config.yml file- name: MyProject on: [push, pull_request] jobs: build: strategy: matrix: operating-system: [Ubuntu-20.04] php-versions: [‘7.0’, ‘7.1’, ‘7.2’, ‘7.3’, ‘7.4’, ‘8.0’] runs-on: ${{ matrix.operating-system }} defaults: run: working-directory: ./myproject steps: – uses: actions/[email protected] – name: Get composer cache directory id: ..

Read more

Here’s my .yml file for github actions. How do I correctly add the ini-values parameter to point to a directory in my project? My project structure is InstaGetSymfony/src = symfony MVC dir. I want my curl.cainfo ini value to point towards InstaGetSymfony/ca/cacert.pem name: InstaGet on: push: branches: [ master ] pull_request: branches: [ master ] ..

Read more