Skip to content

Commit

Permalink
add e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
azuki774 committed Jul 27, 2024
1 parent 0d2c681 commit 5ed49c2
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Go

on:
push:
branches:
- master
pull_request:
branches:
- "**"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21.0

- name: go build
run: make bin-linux-amd64

- name: run e2e (test github)
run: build/bin/myscrapers download test-github
env:
wsAddr: "localhost:7317"
services:
go-rod:
image: ghcr.io/go-rod/rod:v0.116.2
ports:
- 7317:7317
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ jobs:

- name: go test
run: make test

- name: go build
run: make bin-linux-amd64
4 changes: 2 additions & 2 deletions internal/scenario/testgithub.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ func (t *testGitHub) Start(ctx context.Context) error {
Clip: &proto.PageViewport{
X: 0,
Y: 0,
Width: 1920,
Height: 1080,
Width: 1280,
Height: 720,

Scale: 2,
},
Expand Down

0 comments on commit 5ed49c2

Please sign in to comment.