Skip to content

Commit 0f1dddf

Browse files
authored
Merge pull request #2 from Pangjiping/feat/go-lint
feat(workflow): add components/execd test workflow
2 parents 1ba562e + a7a92da commit 0f1dddf

2 files changed

Lines changed: 67 additions & 1 deletion

File tree

.github/workflows/execd-test.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Execd Tests
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
paths:
7+
- 'components/execd/**'
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v5
18+
with:
19+
go-version: '1.24.0'
20+
21+
- name: Run golint
22+
run: |
23+
cd components/execd
24+
make golint
25+
26+
- name: Build
27+
run: |
28+
cd components/execd
29+
make build
30+
31+
- name: Run tests
32+
run: |
33+
cd components/execd
34+
make test
35+
36+
smoke:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout code
40+
uses: actions/checkout@v4
41+
42+
- name: Set up Go
43+
uses: actions/setup-go@v5
44+
with:
45+
go-version: '1.24.0'
46+
47+
- name: Set up Python
48+
uses: actions/setup-python@v5
49+
with:
50+
python-version: '3.10'
51+
52+
- name: Build
53+
run: |
54+
cd components/execd
55+
make build
56+
57+
- name: Run smoke test
58+
run: |
59+
cd components/execd
60+
chmod +x tests/smoke.sh
61+
./tests/smoke.sh
62+
63+
sleep 5
64+
cat execd.log
65+
cat /tmp/jupyter.log
66+
curl -v localhost:44772/ping

components/execd/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.25.4 AS builder
15+
FROM golang:1.24.0 AS builder
1616

1717
WORKDIR /build
1818

0 commit comments

Comments
 (0)