Skip to content

Commit

Permalink
feat: update workflows (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmingyong0423 authored Oct 8, 2024
1 parent a9fc72d commit 8605632
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/go-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ name: Format Go code

on:
push:
branches: [ main, dev]
branches: [ main ]
pull_request:
branches: [ main, dev]
branches: [ main ]

jobs:
build:
Expand All @@ -27,8 +27,6 @@ jobs:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ">=1.18.0"

- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ name: Go

on:
push:
branches: [ "main", "dev" ]
branches: [ "main" ]
pull_request:
branches: [ "main", "dev" ]
branches: [ "main" ]

jobs:

Expand All @@ -32,8 +32,6 @@ jobs:

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.18.0'

- name: Build
run: go build -v ./...
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ on:
tags:
- v*
branches:
- master
- main
- dev
pull_request:
permissions:
contents: read
Expand All @@ -32,8 +30,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.18.0'
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ name: Integration Test

on:
push:
branches: [ main, dev]
branches: [ main ]
pull_request:
branches: [ main, dev]
branches: [ main ]

jobs:
build:
Expand All @@ -27,8 +27,6 @@ jobs:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '>=1.18.0'

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

0 comments on commit 8605632

Please sign in to comment.