.github/workflows/build.yml
raw| 1 | # This workflow will build a container image, |
| 2 | # to run all tests (syntax checking + integration tests) on each PR and git push. |
| 3 | |
| 4 | on: [push, pull_request] |
| 5 | |
| 6 | name: Run all tests |
| 7 | |
| 8 | jobs: |
| 9 | deploy: |
| 10 | name: Deploy |
| 11 | runs-on: ubuntu-latest |
| 12 | timeout-minutes: 4 |
| 13 | steps: |
| 14 | - name: Checkout |
| 15 | uses: actions/checkout@v1 |
| 16 | |
| 17 | - name: Run tests |
| 18 | id: run-tests |
| 19 | env: |
| 20 | IMAGE_TAG: ${{ github.sha }} |
| 21 | run: | |
| 22 | # Build a docker container to run tests |
| 23 | docker build . --target test |