fix: OnceExecutor to runnable #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP Composer CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: "Cache tools installed with PHIVE" | |
uses: "actions/cache@v3" | |
with: | |
path: "${{ runner.temp }}/.phive" | |
key: "php-${{ matrix.php-version }}-phive-${{ hashFiles('.phive/phars.xml') }}" | |
restore-keys: "php-${{ matrix.php-version }}-phive-" | |
- name: "Install PHIVE" | |
uses: "szepeviktor/phive@v1" | |
with: | |
home: "${{ runner.temp }}/.phive" | |
binPath: "${{ github.workspace }}/tools/phive" | |
- name: "Install PHP tools with PHIVE" | |
uses: "szepeviktor/phive-install@v1" | |
with: | |
home: "${{ runner.temp }}/.phive" | |
binPath: "${{ github.workspace }}/tools/phive" | |
trustGpgKeys: "E82B2FB314E9906E,12CE0F1D262429A5,2DF45277AEF09A2F,51C67305FFC2E5C0,8101FB57DD8130F0" | |
- name: Run CI script | |
run: composer run-script ci |