GA testing

This commit is contained in:
Andy Miller
2020-12-03 21:58:32 -07:00
parent 037a84c46f
commit ff511b8968

View File

@@ -9,27 +9,49 @@ on:
jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
php: [ 7.4, 7.3, 7.2 ]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php }}
# extensions: opcache, gd
# coverage: none
# - name: Validate composer.json and composer.lock
# run: composer validate
# - name: Get composer cache directory
# id: composer-cache
# run: echo "::set-output name=dir::$(composer config cache-files-dir)"
# - name: Cache dependencies
# uses: actions/cache@v2
# with:
# path: ${{ steps.composer-cache.outputs.dir }}
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
# restore-keys: ${{ runner.os }}-composer-
# - name: Install dependencies
# run: composer install --dev --prefer-dist --no-progress --no-suggest
# - name: Run test suite
# run: vendor/bin/codecept run
- name: Slack Notification
uses: Ilshidur/action-slack@2.0.2
with:
php-version: ${{ matrix.php }}
extensions: opcache, gd
coverage: none
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --dev --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: vendor/bin/codecept run
args: 'A new commit has been pushed.'
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_AVATAR: repository # Optional. can be (repository, sender, an URL) (defaults to webhook app avatar)