Skip to content

psr/http-message ^1.1 due to GCP compatibility. #393

psr/http-message ^1.1 due to GCP compatibility.

psr/http-message ^1.1 due to GCP compatibility. #393

Workflow file for this run

name: PHP Composer
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
environment:
name: CI
steps:
- uses: actions/checkout@v3
- name: 🗄️ Provide agconnect-services.json
id: agconnect-services
run: echo '${{ secrets.AGCONNECT_SERVICES_JSON }}' > ./agconnect-services.json
- name: 🔢 Validate composer.json and composer.lock
id: composer-validation
run: composer validate --strict
- name: 🔢 Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
- name: 🔢 Install dependencies
id: composer-dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress
# GitHub Actions are pretty useless, while the `client_secret` is being stripped out.
# - name: 🗄️ Run test suite
# id: phpunit-testsuite
# run: |
# echo "GitHub Action Run # $GITHUB_RUN_NUMBER"
# composer run-script test
# env:
# TEST_NAME: main
# XDEBUG_MODE: debug
# HUAWEI_APP_SECRET: ${{ secrets.HUAWEI_APP_SECRET }}
# HUAWEI_APPLICATION_CREDENTIALS: ${{ secrets.HUAWEI_APPLICATION_CREDENTIALS }}
# PHPUNIT_HCM_TEST_DEVICE_TOKEN: ${{ secrets.PHPUNIT_HCM_TEST_DEVICE_TOKEN }}
# PHPUNIT_HCM_TEST_HMAC_VERIFICATION_KEY: ${{ secrets.PHPUNIT_HCM_TEST_HMAC_VERIFICATION_KEY }}
# PHPUNIT_OAUTH2_CONFIG_JSON: ${{ secrets.PHPUNIT_OAUTH2_CONFIG_JSON }}