Skip to content

Commit 9277049

Browse files
committed
Add Docker-based CI tests
Signed-off-by: Drag0nSlay <ak5518786@gmail.com>
1 parent 96a52e8 commit 9277049

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/docker-tests.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Docker Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
jobs:
11+
docker-tests:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Build Docker image
19+
run: |
20+
docker build -t vulnerablecode-test .
21+
22+
- name: Run tests inside Docker container
23+
run: |
24+
docker run --rm vulnerablecode-test pytest

0 commit comments

Comments
 (0)