Skip to content

Commit 000e980

Browse files
committed
ci: Add workflow to run test harness
00-00000daf
1 parent 000229c commit 000e980

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run Test Harness
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
workflow_dispatch:
9+
10+
jobs:
11+
run-test-harness:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v3
16+
17+
- name: Build Docker Image
18+
run: docker build -t miniscript-web .
19+
20+
- name: Run Docker Container
21+
run: docker run -p 8080:8080 -d --name miniscript-test miniscript-web serve
22+
23+
- name: Execute Test Harness
24+
run: ./test_harness.sh
25+
26+
- name: Clean up Docker Container
27+
if: always()
28+
run: docker stop miniscript-test && docker rm miniscript-test

0 commit comments

Comments
 (0)