Skip to content

Commit 0202df2

Browse files
authored
ci: pytest and docker cicd
1 parent d726382 commit 0202df2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Test the code
17+
run: pytest
18+
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Build the Docker image
25+
run: docker build . --file Dockerfile --tag license-example-csharp:latest
26+
- name: Run the Docker image
27+
run: docker run -i license-example-csharp:latest

0 commit comments

Comments
 (0)