Skip to content

Commit 0bf49f3

Browse files
committed
extend basic tests to generate dockerfile
1 parent 0bd7fb3 commit 0bf49f3

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

.github/workflows/test-build.yaml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
name: test_build
22
on: [push, pull_request]
33
jobs:
4-
Run-Test-Build:
4+
Test_Local-Build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- name: Setup Python
9+
uses: actions/setup-python@v4
10+
with:
11+
python-version: '3.x'
12+
- name: Install dependencies
13+
run: |
14+
python -m pip install --upgrade pip
15+
- name: Install ghrocker
16+
run: |
17+
pip install .
18+
- name: Test local build
19+
run: |
20+
ghrocker --build --develop -- test/test_site
21+
Test-Prebuilt:
522
runs-on: ubuntu-latest
623
steps:
724
- uses: actions/checkout@v3
@@ -18,6 +35,21 @@ jobs:
1835
- name: Test prebuilt
1936
run: |
2037
ghrocker --build -- test/test_site
21-
- name: Test local build
38+
39+
dockerfile-generation:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v3
43+
- name: Setup Python
44+
uses: actions/setup-python@v4
45+
with:
46+
python-version: '3.x'
47+
- name: Install dependencies
2248
run: |
23-
ghrocker --build --develop -- test/test_site
49+
python -m pip install --upgrade pip
50+
- name: Install ghrocker
51+
run: |
52+
pip install .
53+
- name: Test Generation
54+
run: |
55+
generate_ghrocker_dockerfile

0 commit comments

Comments
 (0)