Update CHANGELOG.md #27
Workflow file for this run
This file contains 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: PHPUnit Tests | |
on: | |
- push | |
env: | |
IMAGE_NAME: bitcoin-bolt11 | |
jobs: | |
testing: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [ 7.4, 8.0, 8.1, 8.2, 8.3 ] | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v1 | |
- name: Run tests on PHP ${{ matrix.php-version }} | |
run: | | |
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') | |
docker build . --file Dockerfile --build-arg PHP_VERSION=${{ matrix.php-version }} -t $IMAGE_NAME:$VERSION-${{ matrix.php-version }} | |
docker run --rm $IMAGE_NAME:$VERSION-${{ matrix.php-version }} vendor/bin/phpunit --testdox |