mirror of
https://github.com/getgrav/grav.git
synced 2026-02-28 01:21:30 +01:00
GA testing
This commit is contained in:
52
.github/workflows/tests.yml
vendored
52
.github/workflows/tests.yml
vendored
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user