Skip to content

Commit dcce4d0

Browse files
authored
Add docker image sanity tests (#486)
1 parent 28d9b1b commit dcce4d0

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,18 @@ jobs:
118118

119119
- name: Run schema tests
120120
run: bundle exec run schema all
121+
122+
docker:
123+
name: Docker smoke test
124+
125+
runs-on: ubuntu-latest
126+
127+
steps:
128+
- name: Checkout code
129+
uses: actions/checkout@v3
130+
131+
- name: Build the image
132+
run: docker compose build bash
133+
134+
- name: Test pandoc presence
135+
run: docker compose run pandoc-test

docker-compose.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
services:
2+
bash:
3+
build: .
4+
<<: &default
5+
entrypoint: []
6+
image: dannyben/bashly
7+
8+
bashly:
9+
build: .
10+
image: dannyben/bashly
11+
12+
bashly-test:
13+
<<: *default
14+
command: bashly --version
15+
16+
pandoc-test:
17+
<<: *default
18+
command: pandoc --version

0 commit comments

Comments
 (0)