All Projects → MilesChou → composer-action

MilesChou / composer-action

Licence: MIT license
Docker and GitHub Actions for Composer

Programming Languages

Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to composer-action

Actionsflow
The free Zapier/IFTTT alternative for developers to automate your workflows based on Github actions
Stars: ✭ 2,243 (+6497.06%)
Mutual labels:  actions
Localizr
Localizr is a Tool that handles and automates the generation of localization files for IOS and Android so there will be only one source of truth for all of your localization strings.
Stars: ✭ 33 (-2.94%)
Mutual labels:  actions
setup-meteor
Set up your GitHub Actions workflow with a specific version of Meteor.js
Stars: ✭ 17 (-50%)
Mutual labels:  actions
Awesome Actions
A curated list of awesome actions to use on GitHub
Stars: ✭ 16,943 (+49732.35%)
Mutual labels:  actions
ghaction-dump-context
GitHub Action composite to dump context
Stars: ✭ 30 (-11.76%)
Mutual labels:  actions
setup-lazarus
Set up your GitHub Actions workflow with a specific version of Lazarus
Stars: ✭ 29 (-14.71%)
Mutual labels:  actions
Super Linter
Combination of multiple linters to install as a GitHub Action
Stars: ✭ 7,445 (+21797.06%)
Mutual labels:  actions
release-changelog-builder-action
A GitHub action that builds your release notes / changelog fast, easy and exactly the way you want.
Stars: ✭ 515 (+1414.71%)
Mutual labels:  actions
gh-token
Create an installation access token for a GitHub app from your terminal 💻
Stars: ✭ 154 (+352.94%)
Mutual labels:  actions
auth
A GitHub Action for authenticating to Google Cloud.
Stars: ✭ 567 (+1567.65%)
Mutual labels:  actions
Fastpages
An easy to use blogging platform, with enhanced support for Jupyter Notebooks.
Stars: ✭ 2,888 (+8394.12%)
Mutual labels:  actions
action-my-broken-link-checker
A GitHub Action for checking broken links
Stars: ✭ 32 (-5.88%)
Mutual labels:  actions
gh-actions-html-table-generator
Read from a json file and write to the README
Stars: ✭ 29 (-14.71%)
Mutual labels:  actions
Actions Gh Pages
GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.
Stars: ✭ 2,576 (+7476.47%)
Mutual labels:  actions
do-spaces-action
📦Upload directories/files to DigitalOcean Spaces via GitHub Actions. Supports package/library versioning.
Stars: ✭ 30 (-11.76%)
Mutual labels:  actions
Materialabout
It's a material-design about screen to use on your Android apps. A developer profile and application information easy to integrate. 🔖
Stars: ✭ 1,511 (+4344.12%)
Mutual labels:  actions
pr-compliance-action
Check PR for compliance on title, linked issues, and files changed
Stars: ✭ 151 (+344.12%)
Mutual labels:  actions
deploy-appengine
A GitHub Action that deploys source code to Google App Engine.
Stars: ✭ 184 (+441.18%)
Mutual labels:  actions
issue-action
github action for github issue
Stars: ✭ 58 (+70.59%)
Mutual labels:  actions
innersource-crawler
This project creates a repos.json that can be utilized by the SAP InnerSource Portal.
Stars: ✭ 24 (-29.41%)
Mutual labels:  actions

Docker and GitHub Actions for Composer

GitHub Release License

Testing Publish Docker

GitHub Actions for Composer. Base on Docker official PHP image, and installed hirak/prestissimo package.

Why build another one image?

Actually, I want to follow DRY principle and use official Composer image. But see the following composer.json:

{
    "require": {
        "php": ">=5.5.9"
    },
    "require-dev": {
        "phpunit/phpunit": "^4 | ^5 | ^6"
    }
}

And use the following workflow:

- name: Composer install
  uses: docker://composer:1.9.1
  with:
    args: install
- name: PHPUnit testing
  uses: docker://php:5.5
  with:
    args: php vendor/bin/phpunit

It's expected to work on PHP 5.5 ~ 7.3, so we should test on every platform. However, Composer image will install on PHP 7.3 platform and it will install PHPUnit 6.x. It will failed on PHP 5.5 container for PHPUnit 6.x require PHP ^7.0.

Of course, we can use the config.platform.php config to force platform version on PHP 5.5 and it will install PHPUnit 4.x, but PHPUnit 4.x use too many deprecated functions, e.g. each(), so that cannot work on PHP >=7.2.

Finally, I think that build image on every version is the good idea.

Usage for GitHub Actions

Via GitHub Workflow

- uses: MilesChou/composer-action@master
  with:
    args: install

Use install image

- uses: MilesChou/composer-action/install@master

With specify PHP version

- uses: MilesChou/composer-action/5.5/install@master

Usage for Docker

See Docker Hub

Usage for GitHub Container Registry

See GitHub Container Registry

Supported tags and respective Dockerfile links

Notice: Default tags is using Composer v2.

Here is tags for using Composer v1:

The following is built-in tools:

Credits

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].