Add tests for PRs and push to master #5
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: Run tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout repo | |
- name: Fetch the repository code | |
uses: actions/checkout@v4 | |
- name: Build Docker image | |
run: docker build . -t tinty | |
- name: Run Docker container | |
run: docker run tinty |