Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Commit 3957ce1

Browse files
committed
added chromium to GH action dependencies to pass chromedp issues
1 parent 8ac53bf commit 3957ce1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
- name: Install dependencies for chromedp
1717
run: sudo apt-get install -y libnspr4 libnss3 libexpat1 libfontconfig1 libuuid1
1818

19+
- name: Trying to have chromedp work
20+
run: sudo apt-get install -y chromium-browser
21+
1922
- name: Start containers (PostgreSQL, MongoDB, Redis)
2023
run: docker-compose -f "docker-compose-unittest.yml" up -d
2124

extras.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,15 @@ func (ex *extras) htmlToX(w http.ResponseWriter, r *http.Request) {
142142
return
143143
}
144144

145+
/* trying to make GH action pass
146+
opts := append(chromedp.DefaultExecAllocatorOptions[:],
147+
chromedp.Flag("disable-gpu", true),
148+
)*/
149+
145150
// make sure it can timeout
146151
cctx, _ := context.WithTimeout(context.Background(), 3*time.Second)
147152

153+
//HACK: chromedp.NewExecAllocator(cctx, opts...)
148154
ctx, cancel := chromedp.NewContext(cctx)
149155
defer cancel()
150156

0 commit comments

Comments
 (0)