Skip to content

Merge pull request #1082 from humanmade/ci-php-detection-test #76

Merge pull request #1082 from humanmade/ci-php-detection-test

Merge pull request #1082 from humanmade/ci-php-detection-test #76

Workflow file for this run

name: CI
# Self-CI caller for dev-tools' own module-ci.yml.
# Uses the relative-path form so this repo always tests the reusable workflow
# at the same commit as the caller (i.e. the PR or push under test) rather
# than whatever happens to be on master. Module repos that consume the
# reusable workflow continue to pin via `@<sha>` in their own ci.yml.
on:
push:
branches:
- master
- main
- 'v*-branch'
pull_request:
branches:
- master
- main
- 'v*-branch'
jobs:
ci:
uses: ./.github/workflows/module-ci.yml
with:
altis-package: altis/dev-tools
test-command: phpunit
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
# Proves a real install of this package scaffolds .github/workflows/ci.yml
# from templates/project-ci.yml. See .github/workflows/tests/.
bootstrap-tests:
name: CI bootstrap tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Workflow logic mirror tests
run: |
.github/workflows/tests/ci-branch-resolution.sh
.github/workflows/tests/ci-version-resolution.sh
.github/workflows/tests/ci-php-detection.sh
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
- name: Static template/constraint linkage check
run: .github/workflows/tests/ci-template-constraint.sh
- name: End-to-end install scaffolds ci.yml
run: .github/workflows/tests/ci-bootstrap-install.sh