Skip to content

Commit c604eb5

Browse files
authored
Modify Go workflow for branch support and cleanup
Updated GitHub Actions workflow to support both 'master' and 'main' branches and removed lint and security jobs.
1 parent c41ca93 commit c604eb5

File tree

1 file changed

+3
-36
lines changed

1 file changed

+3
-36
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ name: Go
55

66
on:
77
push:
8-
branches: [ "master" ]
8+
branches: [ "master", "main" ]
99
pull_request:
10-
branches: [ "master" ]
10+
branches: [ "master", "main" ]
1111

1212
jobs:
1313
test:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
go-version: ['1.19', '1.20', '1.21']
17+
go-version: ['1.21', '1.22']
1818

1919
steps:
2020
- name: Checkout code
@@ -57,36 +57,3 @@ jobs:
5757
file: ./coverage.out
5858
flags: unittests
5959
name: codecov-umbrella
60-
61-
lint:
62-
runs-on: ubuntu-latest
63-
steps:
64-
- name: Checkout code
65-
uses: actions/checkout@v4
66-
67-
- name: Set up Go
68-
uses: actions/setup-go@v4
69-
with:
70-
go-version: '1.21'
71-
72-
- name: golangci-lint
73-
uses: golangci/golangci-lint-action@v3
74-
with:
75-
version: latest
76-
args: --timeout=5m
77-
78-
security:
79-
runs-on: ubuntu-latest
80-
steps:
81-
- name: Checkout code
82-
uses: actions/checkout@v4
83-
84-
- name: Set up Go
85-
uses: actions/setup-go@v4
86-
with:
87-
go-version: '1.21'
88-
89-
- name: Run Gosec Security Scanner
90-
uses: securecodewarrior/github-action-gosec@master
91-
with:
92-
args: './...'

0 commit comments

Comments
 (0)