-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (37 loc) · 925 Bytes
/
run-tests.yml
File metadata and controls
47 lines (37 loc) · 925 Bytes
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
44
45
46
47
name: Test Modules
on:
pull_request:
branches:
- "**"
push:
branches:
- "dev"
- "wg"
jobs:
test:
runs-on: ubuntu-latest
env:
GOTOOLCHAIN: auto
steps:
- name: Checkout codebase
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.26.2"
check-latest: true
- name: Get project dependencies
run: make deps
- name: Install xray-core
run: make install_xray
- name: install wg
run: make install_wg
- name: Create certificate
run: |
mkdir -p certs
make generate_server_cert
make generate_client_cert
- name: Run regular test suite
run: TEST_INTEGRATION=true go test ./... -v -p 1
- name: Run wireguard integration tests
run: sudo -E make test-integration-wireguard