mirror of
https://github.com/michaelachrisco/ReadOnlyTraitLaravel.git
synced 2024-10-31 21:33:23 -07:00
Merge pull request #50 from michaelachrisco/github-actions
Remove CircleCI and replace with GH Actions
This commit is contained in:
commit
f89b1692e3
2 changed files with 34 additions and 27 deletions
|
@ -1,27 +0,0 @@
|
||||||
version: 2.1
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build_php_version:
|
|
||||||
docker:
|
|
||||||
- image: cimg/php:8.0.20
|
|
||||||
working_directory: ~/ReadOnlyTraitLaravel
|
|
||||||
steps: # a set of executable commands
|
|
||||||
- checkout
|
|
||||||
- run: sudo composer self-update
|
|
||||||
- run: composer install -n --prefer-dist --no-plugins
|
|
||||||
- run: ./vendor/bin/kahlan -reporter=verbose
|
|
||||||
build_latest:
|
|
||||||
docker:
|
|
||||||
- image: circleci/php:latest
|
|
||||||
working_directory: ~/ReadOnlyTraitLaravel
|
|
||||||
steps: # a set of executable commands
|
|
||||||
- checkout
|
|
||||||
- run: sudo composer self-update
|
|
||||||
- run: composer install -n --prefer-dist --no-plugins
|
|
||||||
- run: ./vendor/bin/kahlan -reporter=verbose
|
|
||||||
workflows:
|
|
||||||
version: 2
|
|
||||||
build:
|
|
||||||
jobs:
|
|
||||||
- build_php_version
|
|
||||||
- build_latest
|
|
34
.github/workflows/build_test.yml
vendored
Normal file
34
.github/workflows/build_test.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
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
|
||||||
|
- 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
|
||||||
|
- 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
|
||||||
|
- 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
|
||||||
|
- run: composer install -n --prefer-dist --no-plugins
|
||||||
|
- run: "./vendor/bin/kahlan -reporter=verbose"
|
Loading…
Reference in a new issue