Skip to content

Commit 8b96126

Browse files
Go 1.22 (#15)
1 parent 7dc749f commit 8b96126

File tree

3 files changed

+35
-26
lines changed

3 files changed

+35
-26
lines changed

.github/workflows/code_quality.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/test.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/YaroslavPodorvanov/golang-struct-to-elastic-mapping
22

3-
go 1.18
3+
go 1.22
44

55
require github.com/stretchr/testify v1.7.2
66

0 commit comments

Comments
 (0)