Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update workflows #57

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading