Skip to content

Commit

Permalink
optimize github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
chengshiwen committed Aug 5, 2024
1 parent e8fcd43 commit 99a9d80
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,28 @@ name: Go

on:
push:
branches: [ dev, master ]
branches: [ master, branch-2.* ]
pull_request:
branches: [ dev, master ]
branches: [ master, branch-2.* ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.1
args: --timeout 3m --config .golangci.yml

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

Expand Down

0 comments on commit 99a9d80

Please sign in to comment.