Skip to content

Commit 20164fd

Browse files
committed
Provide docker image for test execution context
1 parent bf9b199 commit 20164fd

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: gcc:9.3.0
11+
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
14+
- name: Build environment
15+
run: docker build -t espresso .
1416
- name: Unit Tests
15-
run: ./runtest test/unit-tests/all.cpp
17+
run: docker run --rm espresso test/unit-tests/all.cpp
1618
- name: Integration Test - Blinker
17-
run: ./runtest test/integration-tests/blinker/blinker.spec.cpp
19+
run: docker run --rm espresso test/integration-tests/blinker/blinker.spec.cpp
1820
- name: Integration Test - Button LED
19-
run: ./runtest test/integration-tests/button-led/button-led.spec.cpp
21+
run: docker run --rm espresso test/integration-tests/button-led/button-led.spec.cpp
2022
- name: Integration Test - Debouncing
21-
run: ./runtest test/integration-tests/debouncing/debouncing.spec.cpp
23+
run: docker run --rm espresso test/integration-tests/debouncing/debouncing.spec.cpp
2224
- name: Integration Test - Game Buzzer
23-
run: ./runtest test/integration-tests/game-buzzer/game-buzzer.spec.cpp
25+
run: docker run --rm espresso test/integration-tests/game-buzzer/game-buzzer.spec.cpp
2426
- name: Integration Test - Multiplexing
25-
run: ./runtest test/integration-tests/multiplexing/multiplexing.spec.cpp
27+
run: docker run --rm espresso test/integration-tests/multiplexing/multiplexing.spec.cpp
2628
- name: Integration Test - Traffic Lights
27-
run: ./runtest test/integration-tests/traffic-lights/traffic-lights.spec.cpp
29+
run: docker run --rm espresso test/integration-tests/traffic-lights/traffic-lights.spec.cpp

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM gcc:9.3.0
2+
3+
WORKDIR /app
4+
COPY . ./
5+
6+
ENTRYPOINT ["./runtest"]

0 commit comments

Comments
 (0)