This repository was archived by the owner on Sep 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 15
15
16
16
- name : Install dependencies for chromedp
17
17
run : sudo apt-get install -y libnspr4 libnss3 libexpat1 libfontconfig1 libuuid1
18
-
19
- - name : Trying to have chromedp work
20
- run : sudo apt-get install -y chromium-browser
18
+
21
19
22
20
- name : Start containers (PostgreSQL, MongoDB, Redis)
23
21
run : docker-compose -f "docker-compose-unittest.yml" up -d
Original file line number Diff line number Diff line change @@ -142,16 +142,16 @@ func (ex *extras) htmlToX(w http.ResponseWriter, r *http.Request) {
142
142
return
143
143
}
144
144
145
- /* trying to make GH action pass
146
- opts := append(chromedp.DefaultExecAllocatorOptions[:],
145
+ /*opts := append(chromedp.DefaultExecAllocatorOptions[:],
147
146
chromedp.Flag("disable-gpu", true),
148
147
)*/
149
148
150
149
// make sure it can timeout
151
- cctx , _ := context .WithTimeout (context .Background (), 3 * time .Second )
150
+ // cctx, _ := context.WithTimeout(context.Background(), 3*time.Second)
152
151
153
- //HACK: chromedp.NewExecAllocator(cctx, opts...)
154
- ctx , cancel := chromedp .NewContext (cctx )
152
+ //HACK:
153
+ //ctx, cancel := chromedp.NewContext(cctx)
154
+ ctx , cancel := chromedp .NewContext (context .Background ())
155
155
defer cancel ()
156
156
157
157
var buf []byte
You can’t perform that action at this time.
0 commit comments