File tree Expand file tree Collapse file tree 1 file changed +5
-19
lines changed Expand file tree Collapse file tree 1 file changed +5
-19
lines changed Original file line number Diff line number Diff line change 12
12
13
13
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14
14
jobs :
15
- build :
15
+ buildAndTest :
16
16
runs-on : ubuntu-latest
17
17
18
18
steps :
19
19
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
20
20
- name : Checkout code
21
- uses : actions/checkout@v2
21
+ uses : actions/checkout@v4
22
22
23
23
- name : Setup Go environment
24
- uses : actions/setup-go@v2
24
+ uses : actions/setup-go@v5
25
+ with :
26
+ go-version : 1.22
25
27
26
28
- name : Checking compilation errors while generating image
27
29
run : env GOOS=linux go build -o "sumologic-extension" "lambda-extensions/sumologic-extension.go"
28
30
29
- test :
30
- strategy :
31
- matrix :
32
- go-version : [1.21.x, 1.22.x]
33
- os : [ubuntu-latest, macos-latest]
34
- runs-on : ${{ matrix.os }}
35
-
36
- steps :
37
- - name : Setup Go (version - ${{ matrix.go }})
38
- uses : actions/setup-go@v2
39
- with :
40
- go-version : ${{ matrix.go }}
41
-
42
- - name : Checkout code
43
- uses : actions/checkout@v2
44
-
45
31
- name : Run Unit Tests
46
32
run : go test ./...
You can’t perform that action at this time.
0 commit comments