Skip to content

Commit 4e4cf24

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

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

.github/workflows/unittest.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,21 @@ on:
1212

1313
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1414
jobs:
15-
build:
15+
buildAndTest:
1616
runs-on: ubuntu-latest
1717

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

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-
4531
- name: Run Unit Tests
4632
run: go test ./...

0 commit comments

Comments
 (0)