-
Notifications
You must be signed in to change notification settings - Fork 586
43 lines (40 loc) · 1 KB
/
e2emodule.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: E2E Unit tests/Lint.
# This workflow runs when a PR is opened that targets code that is part of the e2e module.
on:
merge_group:
pull_request:
paths:
- '.github/workflows/e2emodule.yml'
- 'e2e/**'
permissions:
contents: read
pull-requests: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.22'
cache-dependency-path: 'e2e/go.sum'
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: golangci/[email protected]
with:
version: v1.57.2
only-new-issues: true
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.22'
cache-dependency-path: 'e2e/go.sum'
- name: Go Test
run: |
cd e2e
go test -v -mod=readonly ./... -tags='test_e2e'