-
Notifications
You must be signed in to change notification settings - Fork 23
43 lines (35 loc) · 1.1 KB
/
antfly-proxy-go.yml
File metadata and controls
43 lines (35 loc) · 1.1 KB
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
# Antfly Proxy CI workflow
# Runs focused proxy checks and smoke-builds Dockerfile.proxy on PRs/pushes.
name: Antfly Proxy Tests
on:
push:
branches: ["main"]
paths:
- "pkg/antfly-proxy/**"
- ".github/workflows/antfly-proxy-*.yml"
pull_request:
branches: ["main"]
paths:
- "pkg/antfly-proxy/**"
- ".github/workflows/antfly-proxy-*.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
proxy:
runs-on: codebuild-GitHubActionsRunnerAntflyAntflyDB-${{ github.run_id }}-${{ github.run_attempt }}
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.26"
cache: false
- name: Run proxy unit tests
run: cd pkg/antfly-proxy && go test ./...
- name: Build antfly-proxy
run: cd pkg/antfly-proxy && go build -v -o ../../antfly-proxy ./cmd/antfly-proxy
- name: Smoke test antfly-proxy
run: timeout 2 ./antfly-proxy || [ $? -eq 124 ]