Merge pull request #14 from keboola/novakjiri-PST-1908 #2
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 | |
env: | |
APP_IMAGE: php-jsonparser | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: 'Check out the repo' | |
uses: actions/checkout@v2 | |
- | |
name: 'Print Docker version' | |
run: 'docker -v' | |
- | |
name: 'Build image' | |
run: 'docker build -t $APP_IMAGE .' | |
- | |
name: 'Run tests' | |
run: 'docker run $APP_IMAGE composer ci' |