Merge pull request #56 from keboola/CM-873-php-csv-may-detect-linebre… #57
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: 'GitHub Actions' | |
'on': | |
- push | |
concurrency: 'ci-${{ github.ref }}' | |
env: | |
APP_IMAGE: keboola-php-csv | |
DOCKERHUB_USER: '${{ secrets.DOCKERHUB_USER }}' | |
DOCKERHUB_TOKEN: '${{ secrets.DOCKERHUB_TOKEN }}' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php_version: [ 8.2, 8.1, 8.0, 7.4 ] | |
steps: | |
- | |
name: 'Check out the repo' | |
uses: actions/checkout@v3 | |
- | |
name: 'Docker login' | |
if: env.DOCKERHUB_TOKEN | |
run: 'docker login --username "$DOCKERHUB_USER" --password "$DOCKERHUB_TOKEN"' | |
- | |
name: 'Build image' | |
run: 'docker build --build-arg PHP_VERSION=${{ matrix.php_version }} -t $APP_IMAGE .' | |
- | |
name: 'Run tests' | |
run: 'docker run ${{env.APP_IMAGE}} composer ci' |