Merge pull request #26 from pavelkraleu/17-implement-docker-for-testing #1
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: Docker Build and Run | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Build Docker Image | |
run: | | |
docker build . -t needle-in-a-haystack | |
- name: Run Docker Container | |
run: | | |
docker run --entrypoint pytest -t needle-in-a-haystack |