Coder Social home page Coder Social logo

chihiro-adachi / setup-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nanasess/setup-php

0.0 1.0 0.0 69.47 MB

Set up your GitHub Actions workflow with a specific version of PHP 5.4 or later🎉

Home Page: https://www.php.net

License: MIT License

Shell 30.68% JavaScript 37.11% PowerShell 6.24% TypeScript 25.97%

setup-php's Introduction

setup-php

GitHub Actions status LICENSE PHP Versions Supported

This action sets up a PHP environment for use in actions by:

  • optionally installing a version of PHP and adding to PATH.
  • registering problem matchers for error output

PHP version support

  • 5.4
  • 5.5
  • 5.6
  • 7.0
  • 7.1
  • 7.2
  • 7.3
  • 7.4
  • 8.0
  • 8.1

Patch version can also be set. e.g. 7.2.11

OS/Platform support

  • ubuntu-latest, ubuntu-22.04 or ubuntu-20.04
  • windows-latest, windows-2022 or windows-2019

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@v3
- uses: nanasess/setup-php@v3
  with:
    php-version: '7.4'
- run: php my_script.php

Matrix Testing:

jobs:
  build:
    runs-on: ${{ matrix.operating-system }}
    strategy:
      matrix:
        operating-system: [ ubuntu-latest, windows-latest ]
        php: [ '5.4', '5.5', '5.6', '7.1', '7.2', '7.3', '7.4', '7.3.3' ]
    name: PHP ${{ matrix.php }} sample
    steps:
      - uses: actions/checkout@v3
      - name: Setup PHP
        uses: nanasess/setup-php@v3
        with:
          php-version: ${{ matrix.php }}
      - run: php my_script.php

License

The scripts and documentation in this project are released under the MIT License

Contributions

Contributions are welcome! See Contributor's Guide

setup-php's People

Contributors

nanasess avatar dependabot[bot] avatar reindert-vetter avatar jdpedrie avatar

Watchers

James Cloos avatar

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.