Skip to content

Commit f11fe9d

Browse files
committed
updated version in test workflow file
1 parent 005f7f8 commit f11fe9d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/unittest.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,31 @@ jobs:
1818
steps:
1919
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2020
- name: Checkout code
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v4
2222

2323
- name: Setup Go environment
24-
uses: actions/setup-go@v2
24+
uses: actions/setup-go@v5
25+
with:
26+
go-version: 1.22
2527

2628
- name: Checking compilation errors while generating image
2729
run: env GOOS=linux go build -o "sumologic-extension" "lambda-extensions/sumologic-extension.go"
2830

2931
test:
3032
strategy:
3133
matrix:
32-
go-version: [1.21.x, 1.22.x]
34+
go: ['1.21', '1.22']
3335
os: [ubuntu-latest, macos-latest]
3436
runs-on: ${{ matrix.os }}
3537

3638
steps:
39+
- name: Checkout code
40+
uses: actions/checkout@v4
41+
3742
- name: Setup Go (version - ${{ matrix.go }})
38-
uses: actions/setup-go@v2
43+
uses: actions/setup-go@v5
3944
with:
4045
go-version: ${{ matrix.go }}
4146

42-
- name: Checkout code
43-
uses: actions/checkout@v2
44-
4547
- name: Run Unit Tests
4648
run: go test ./...

0 commit comments

Comments
 (0)