-
Notifications
You must be signed in to change notification settings - Fork 41
54 lines (45 loc) · 1.15 KB
/
tests.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
44
45
46
47
48
49
50
51
52
53
54
name: Tests
on:
push:
branches:
- "main"
paths-ignore:
- "**/*.md"
- "LICENSE"
pull_request:
paths-ignore:
- "**/*.md"
- "LICENSE"
jobs:
test:
strategy:
matrix:
go-version: [1.21.x]
os: [ubuntu-latest]
xcaddy-version: [v0.3.5]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 0 #for better blame info
- name: Tests and coverage
run: go run mage.go coverage
- name: Install xcaddy
run: go install github.com/caddyserver/xcaddy/cmd/xcaddy@${{ matrix.xcaddy-version }}
- name: Build caddy
run: go run mage.go buildCaddyLinux
- name: Run e2e tests
run: go run mage.go e2e
- name: Run regression tests (ftw)
run: go run mage.go ftw
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: ftw-envoy-logs
path: build/ftw-envoy.log