Change CI from Travis to GitHub Actions #2
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 | |
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' |