Merge pull request #91 from bluem-development/dependabot/composer/php… #284
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 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Setup .env | |
| run: cp .env.example .env | |
| - 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: Run composer | |
| uses: php-actions/composer@v5 | |
| - name: PHPUnit Tests | |
| uses: php-actions/phpunit@v3 | |
| with: | |
| version: 9.5 | |
| php_version: 8.1 | |
| bootstrap: ./vendor/autoload.php | |
| configuration: ./.github/workflows/phpunit.xml |