Skip to content

Commit 8605632

Browse files
feat: update workflows (#57)
1 parent a9fc72d commit 8605632

File tree

4 files changed

+6
-16
lines changed

4 files changed

+6
-16
lines changed

.github/workflows/go-fmt.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ name: Format Go code
1616

1717
on:
1818
push:
19-
branches: [ main, dev]
19+
branches: [ main ]
2020
pull_request:
21-
branches: [ main, dev]
21+
branches: [ main ]
2222

2323
jobs:
2424
build:
@@ -27,8 +27,6 @@ jobs:
2727
- uses: actions/checkout@v4
2828
- name: Set up Go
2929
uses: actions/setup-go@v5
30-
with:
31-
go-version: ">=1.18.0"
3230

3331
- name: Install goimports
3432
run: go install golang.org/x/tools/cmd/goimports@latest

.github/workflows/go.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ name: Go
1919

2020
on:
2121
push:
22-
branches: [ "main", "dev" ]
22+
branches: [ "main" ]
2323
pull_request:
24-
branches: [ "main", "dev" ]
24+
branches: [ "main" ]
2525

2626
jobs:
2727

@@ -32,8 +32,6 @@ jobs:
3232

3333
- name: Set up Go
3434
uses: actions/setup-go@v5
35-
with:
36-
go-version: '1.18.0'
3735

3836
- name: Build
3937
run: go build -v ./...

.github/workflows/golangci-lint.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ on:
1818
tags:
1919
- v*
2020
branches:
21-
- master
2221
- main
23-
- dev
2422
pull_request:
2523
permissions:
2624
contents: read
@@ -32,8 +30,6 @@ jobs:
3230
runs-on: ubuntu-latest
3331
steps:
3432
- uses: actions/setup-go@v5
35-
with:
36-
go-version: '1.18.0'
3733
- uses: actions/checkout@v4
3834
- name: golangci-lint
3935
uses: golangci/golangci-lint-action@v6

.github/workflows/integration_test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ name: Integration Test
1616

1717
on:
1818
push:
19-
branches: [ main, dev]
19+
branches: [ main ]
2020
pull_request:
21-
branches: [ main, dev]
21+
branches: [ main ]
2222

2323
jobs:
2424
build:
@@ -27,8 +27,6 @@ jobs:
2727
- uses: actions/checkout@v4
2828
- name: Set up Go
2929
uses: actions/setup-go@v4
30-
with:
31-
go-version: '>=1.18.0'
3230

3331
- name: Test
3432
run: sudo sh ./script/integrate_test.sh

0 commit comments

Comments
 (0)