-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e: add workflow for e2e module. (#6051)
* e2e: add workflow for e2e module. * e2e: exclude running actual e2e tests. * chore: Rename job name.
- Loading branch information
1 parent
d18a661
commit 1323a73
Showing
2 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: E2E Unit tests/Lint. | ||
# This workflow runs when a PR is opened that targets code that is part of the e2e module. | ||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/e2emodule.yml' | ||
- 'e2e/**' | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21' | ||
- uses: actions/checkout@v4 | ||
- uses: golangci/golangci-lint-action@v4.0.0 | ||
with: | ||
version: v1.54.2 | ||
args: --timeout 5m | ||
working-directory: e2e/ | ||
|
||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21' | ||
- name: Go Test | ||
run: | | ||
cd e2e | ||
go test -v -mod=readonly ./... -tags='test_e2e' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters