php-parser/.github/workflows/build.yml
2021-01-17 20:33:48 +01:00

48 lines
1.3 KiB
YAML

name: build
on:
push:
branches:
- master
jobs:
run:
runs-on: ubuntu-latest
name: Convert
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.0"
coverage: none
- name: Check environment
run: |
php --version
composer --version
- name: Get composer cache directory
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ matrix.os }}-composer-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ matrix.os }}-composer-${{ matrix.php }}-
- name: Install dependencies
run: |
composer install --prefer-dist
composer require phabel/phabel --prefer-dist --no-plugins
- name: Convert phabel
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "Github Actions"
php vendor/phabel/phabel/tools/convertPhabel.php all