Skip to content

All-in-ine

All-in-ine #25

Workflow file for this run

name: "All-in-ine"
on:
pull_request:
workflow_dispatch:
push:
branches: ["*"]
schedule:
- cron: "0 * * * 1"
jobs:
install:
name: "Install"
runs-on: "${{ matrix.operating-system }}"
strategy:
matrix:
php-version: [ "8.2" ]
operating-system: [ "ubuntu-latest" ]
fail-fast: false
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Setup PHP cache environment"
id: "extcache"
uses: "shivammathur/cache-extensions@v1"
with:
php-version: "${{ matrix.php-version }}"
extensions: "mbstring,json"
key: "v1"
- name: "Cache PHP extensions"
uses: "actions/cache@v3"
with:
path: "${{ steps.extcache.outputs.dir }}"
key: "${{ steps.extcache.outputs.key }}"
restore-keys: "${{ steps.extcache.outputs.key }}"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
tools: "composer, cs2pr"
coverage: "${{ env.coverage }}"
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Setup problem matchers for PHP"
run: 'echo "::add-matcher::${{ runner.tool_cache }}/php.json"'
- name: "Get Composer cache directory"
id: "composercache"
run: 'echo "::set-output name=dir::$(composer config cache-files-dir)"'
- name: "Cache PHP dependencies"
uses: "actions/cache@v3"
with:
path: "${{ steps.composercache.outputs.dir }}"
key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "${{ runner.os }}-composer-"
- name: "Install dependencies"
run: "composer install"
- name: "List dependencies"
run: "composer show -l"
- name: "Show outdated"
run: "composer show -o"