From ff511b8968e36b88114e66d495d0879f2ecadf39 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 3 Dec 2020 21:58:32 -0700 Subject: [PATCH] GA testing --- .github/workflows/tests.yml | 52 ++++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 15 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a4f8e5738..e1e324f32 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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) + +