GithubHelp home page GithubHelp logo

Comments (3)

samihsoylu avatar samihsoylu commented on July 18, 2024 1

Specifying "uses" under each step seems to have fixed the problem, but I don't find it clean since I need PHP in all my steps. Defining use once would have been nice.

Thank you for your help

from composer-action.

MilesChou avatar MilesChou commented on July 18, 2024

Try this config

name: CI

on:
  pull_request:
    branches: [ master ]

jobs:
  build74:
    name: PHP 7.4 Code quality check
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Validate composer.json and composer.lock
        uses: MilesChou/composer-action/7.4@master
        with:
          arg: validate --no-interaction --strict

      - name: Install dependencies
        uses: MilesChou/composer-action/7.4@master
        with:
          arg: install --prefer-dist --no-progress --no-suggest

      - name: Check for PHP syntax errors
        run: ./vendor/bin/parallel-lint --exclude vendor/ .

      - name: Validate PHP code style
        run: ./vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no .

from composer-action.

MilesChou avatar MilesChou commented on July 18, 2024

You can try this actions

https://github.com/marketplace/actions/setup-php-action

Laravel is good example

https://github.com/laravel/framework/blob/8.x/.github/workflows/tests.yml

from composer-action.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.