File tree Expand file tree Collapse file tree 3 files changed +35
-26
lines changed Expand file tree Collapse file tree 3 files changed +35
-26
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Run tests
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+
7
+ permissions :
8
+ contents : read
9
+
10
+ jobs :
11
+ test :
12
+ name : Code quality
13
+ strategy :
14
+ matrix :
15
+ go-version : [1.22.x]
16
+ os : [ubuntu-latest]
17
+ runs-on : ${{ matrix.os }}
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Set up Go
23
+ uses : actions/setup-go@v5
24
+ with :
25
+ go-version : ${{ matrix.go-version }}
26
+ cache-dependency-path : ' **/go.sum'
27
+
28
+ - name : Vet and build
29
+ run : |
30
+ go vet ./...
31
+ go build ./...
32
+
33
+ - name : Unit tests
34
+ run : go test ./... -v -short
Original file line number Diff line number Diff line change 1
1
module github.com/YaroslavPodorvanov/golang-struct-to-elastic-mapping
2
2
3
- go 1.18
3
+ go 1.22
4
4
5
5
require github.com/stretchr/testify v1.7.2
6
6
You can’t perform that action at this time.
0 commit comments