Skip to content

Commit 9d851a7

Browse files
committed
[actions] add e2e tests to CI pipeline
1 parent 245ef4e commit 9d851a7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/go.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,30 @@ jobs:
6767
# uses: codecov/codecov-action@v4
6868
# with:
6969
# token: ${{ secrets.CODECOV_TOKEN }}
70+
71+
e2e-test:
72+
name: E2E Test
73+
runs-on: ubuntu-latest
74+
needs: test
75+
steps:
76+
# step 1: checkout repository code
77+
- name: Checkout code into workspace directory
78+
uses: actions/checkout@v4
79+
80+
# step 2: set up go
81+
- name: Set up Go
82+
uses: actions/setup-go@v5
83+
with:
84+
go-version: stable
85+
86+
# step 3: install main project dependencies
87+
- name: Install main Go dependencies
88+
run: go mod download
89+
90+
# step 4: install e2e test dependencies
91+
- name: Install E2E test dependencies
92+
run: cd tests/e2e && go mod download
93+
94+
# step 5: run e2e tests with verbose output
95+
- name: Run E2E tests
96+
run: cd tests/e2e && go test -v ./...

0 commit comments

Comments
 (0)