Automatic Unit Testing (Docker) #18
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: Automatic Unit Testing | |
run-name: Automatic Unit Testing (Docker) | |
on: [push] | |
jobs: | |
Unit-Testing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Workflow triggered by a ${{ github.event_name }} event | |
run: echo "" | |
- name: Operating system is ${{ runner.os }} | |
run: echo "" | |
- name: Check out repository code from ${{ github.repository }} | |
uses: actions/checkout@v4 | |
- name: Call run-tests.sh in Docker image | |
run: | | |
docker build -t test-image:latest . | |
docker run test-image:latest /calculator/run-tests.sh | |
- name: Job status is ${{ job.status }} | |
run: echo "" |