Skip to content

Commit da75cf8

Browse files
committed
Add CI
1 parent a3c0dda commit da75cf8

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
pull_request:
9+
10+
concurrency:
11+
group: ci-${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
go:
16+
name: Go Build & Test (${{ matrix.os }})
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os:
22+
- ubuntu-latest
23+
- windows-latest
24+
- macos-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Setup Go
30+
uses: actions/setup-go@v5
31+
with:
32+
go-version-file: go.mod
33+
cache: true
34+
35+
- name: Go Build
36+
run: go build ./...
37+
38+
- name: Go Test
39+
run: go test ./... -v
40+
41+
docker:
42+
name: Docker Build Stages
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Checkout
46+
uses: actions/checkout@v4
47+
48+
- name: Build test stage
49+
run: docker build --target test -t dynamicproxy:test .
50+
51+
- name: Build runtime image
52+
run: docker build -t dynamicproxy:ci .

0 commit comments

Comments
 (0)