Merge pull request #240 from PHPers/add-trojmiasto-22-meetup #77
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: Test build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
uses: php-actions/composer@v6 | |
with: | |
php_version: "7.4" | |
version: 2 | |
- name: Build | |
run: | | |
php7.4 vendor/bin/sculpin generate -vvv -n --env=prod > build_output.log | |
if grep -iq "notice\|error\|warning" build_output.log ; then return 1; fi | |
- name: Output | |
run: cat build_output.log |