2023-03-10 16:25:01 -08:00
|
|
|
name: michaelachrisco2/ReadOnlyTraitLaravel/build
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
jobs:
|
|
|
|
build_php_version:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: php:8.0.20
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3.3.0
|
2023-03-10 16:28:14 -08:00
|
|
|
- uses: php-actions/composer@master
|
|
|
|
with:
|
|
|
|
php_version: '8.1'
|
|
|
|
ssh_key: ${{ secrets.SSH_KEY }}
|
|
|
|
ssh_key_pub: ${{ secrets.SSH_KEY_PUB }}
|
|
|
|
- run: composer self-update
|
2023-03-10 16:25:01 -08:00
|
|
|
- run: composer install -n --prefer-dist --no-plugins
|
|
|
|
- run: "./vendor/bin/kahlan -reporter=verbose"
|
|
|
|
build_latest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: php:latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3.3.0
|
2023-03-10 16:28:14 -08:00
|
|
|
- uses: php-actions/composer@master
|
|
|
|
with:
|
|
|
|
php_version: '8.1'
|
|
|
|
ssh_key: ${{ secrets.SSH_KEY }}
|
|
|
|
ssh_key_pub: ${{ secrets.SSH_KEY_PUB }}
|
|
|
|
- run: composer self-update
|
2023-03-10 16:25:01 -08:00
|
|
|
- run: composer install -n --prefer-dist --no-plugins
|
|
|
|
- run: "./vendor/bin/kahlan -reporter=verbose"
|