Skip to content

Commit 9c72670

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 213bc0c + 18e1a26 commit 9c72670

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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: Install requirements
17+
run: pip3 install -r requirements.txt
18+
- name: Test the code
19+
run: pytest
20+
21+
build:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
- name: Build the Docker image
27+
run: docker build . --file Dockerfile --tag license-example-csharp:latest
28+
- name: Run the Docker image
29+
run: docker run -i license-example-csharp:latest

0 commit comments

Comments
 (0)