Skip to content

Commit fbffc79

Browse files
committed
chore: update workflows
1 parent 5df57c2 commit fbffc79

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

.github/workflows/go-cross.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Go Matrix
2-
on: [push, pull_request]
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
38

49
jobs:
510

@@ -15,13 +20,8 @@ jobs:
1520
os: [ubuntu-latest, macos-latest, windows-latest]
1621

1722
steps:
18-
# https://github.com/marketplace/actions/checkout
19-
- name: Checkout code
20-
uses: actions/checkout@v4
21-
22-
# https://github.com/marketplace/actions/setup-go-environment
23-
- name: Set up Go ${{ matrix.go-version }}
24-
uses: actions/setup-go@v5
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-go@v5
2525
with:
2626
go-version: ${{ matrix.go-version }}
2727
- name: Test

.github/workflows/main.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414
env:
1515
GO_VERSION: stable
16-
GOLANGCI_LINT_VERSION: v1.62.2
16+
GOLANGCI_LINT_VERSION: v1.63.4
1717
CGO_ENABLED: 0
1818

1919
steps:
20-
# https://github.com/marketplace/actions/checkout
21-
- name: Check out code
22-
uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
25-
26-
# https://github.com/marketplace/actions/setup-go-environment
27-
- name: Set up Go ${{ env.GO_VERSION }}
28-
uses: actions/setup-go@v5
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-go@v5
2922
with:
3023
go-version: ${{ env.GO_VERSION }}
3124

0 commit comments

Comments
 (0)