chore: Fix ci #339
This file contains hidden or 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: CI | |
| on: [push] | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # add 8.4 soon | |
| php-version: ['8.3'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup .env | |
| run: cp .env.example .env | |
| - name: Setup ownership | |
| run: git config --global --add safe.directory /app | |
| - name: Replace placeholders with GitHub Secrets | |
| run: | | |
| sed -i "s/BLUEM_SENDER_ID=S/BLUEM_SENDER_ID=${{ secrets.BLUEM_SENDER_ID }}/g" .env | |
| sed -i "s/BLUEM_TEST_ACCESS_TOKEN=/BLUEM_TEST_ACCESS_TOKEN=${{ secrets.BLUEM_TEST_ACCESS_TOKEN }}/g" .env | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: mbstring, intl | |
| coverage: xdebug | |
| - name: Run composer | |
| uses: php-actions/composer@v6 | |
| with: | |
| php_version: ${{ matrix.php-version }} | |
| - name: PHP CodeSniffer | |
| run: ./vendor/bin/phpcs --runtime-set ignore_warnings_on_exit 1 --standard=PSR12 --exclude=Generic.NamingConventions.UpperCaseConstantName,PSR1.Methods.CamelCapsMethodName,PSR2.Methods.MethodDeclaration ./src | |
| - name: PHPCS Lint | |
| run: make lint | |
| - name: PHP CodeSniffer | |
| run: ./vendor/bin/phpcs --runtime-set ignore_warnings_on_exit 1 --standard=PSR12 --exclude=Generic.NamingConventions.UpperCaseConstantName,PSR1.Methods.CamelCapsMethodName,PSR2.Methods.MethodDeclaration ./src | |
| - name: PHPUnit Tests | |
| uses: php-actions/phpunit@v4 | |
| with: | |
| php_version: ${{ matrix.php-version }} | |
| version: 12 | |
| bootstrap: ./vendor/autoload.php | |
| configuration: ./.github/workflows/phpunit.xml |