-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (37 loc) · 957 Bytes
/
go.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: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
matrix:
strategy:
matrix:
lib: [otelmiddleware, otelzerolog, otelslog, otellogrus]
runs-on: ubuntu-latest
name: "Build and test - ${{ matrix.lib }}"
steps:
- uses: actions/checkout@v3
name: Checkout code
- uses: actions/setup-go@v3
name: Set up Go
with:
go-version-file: "${{ matrix.lib }}/go.mod"
# go-version: "1.20.6"
- name: Build
run: go build -v ./...
working-directory: "${{ matrix.lib }}"
- name: Test
run: go test -v ./...
working-directory: "${{ matrix.lib }}"
# - name: Install Dagger
# uses: dagger/dagger-for-github@v3
# with:
# install-only: true
#
# - name: Dagger project update
# run: dagger project update
#
# - name: Dagger do test
# run: dagger do test --log-format plain