Skip to content

Commit 7c97620

Browse files
Merge pull request #1263 from lightpanda-io/nightly-integration
ci: add nightly integration test
2 parents b0daf2f + e76b993 commit 7c97620

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: e2e-integration-test
2+
3+
env:
4+
LIGHTPANDA_DISABLE_TELEMETRY: true
5+
6+
on:
7+
schedule:
8+
- cron: "4 4 * * *"
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
jobs:
13+
zig-build-release:
14+
name: zig build release
15+
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 15
18+
19+
# Don't run the CI with draft PR.
20+
if: github.event.pull_request.draft == false
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
# fetch submodules recusively, to get zig-js-runtime submodules also.
27+
submodules: recursive
28+
29+
- uses: ./.github/actions/install
30+
31+
- name: zig build release
32+
run: zig build -Dprebuilt_v8_path=v8/libc_v8.a -Doptimize=ReleaseFast -Dcpu=x86_64 -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
33+
34+
- name: upload artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: lightpanda-build-release
38+
path: |
39+
zig-out/bin/lightpanda
40+
retention-days: 1
41+
42+
demo-scripts:
43+
name: demo-integration-scripts
44+
needs: zig-build-release
45+
46+
runs-on: ubuntu-latest
47+
timeout-minutes: 15
48+
49+
steps:
50+
- uses: actions/checkout@v4
51+
with:
52+
repository: 'lightpanda-io/demo'
53+
fetch-depth: 0
54+
55+
- run: npm install
56+
57+
- name: download artifact
58+
uses: actions/download-artifact@v4
59+
with:
60+
name: lightpanda-build-release
61+
62+
- run: chmod a+x ./lightpanda
63+
64+
- name: run end to end integration tests
65+
run: |
66+
./lightpanda serve & echo $! > LPD.pid
67+
go run integration/main.go
68+
kill `cat LPD.pid`

0 commit comments

Comments
 (0)