Skip to content

Commit

Permalink
Fix PR branch
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro committed Jun 28, 2024
1 parent 27c5a7b commit 04a8b66
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ on:
push:
branches: [main]
pull_request:
branches: ['**']
branches: [main]

env:
golang-version: 1.18.4
golangci-lint-version: v1.46.2

jobs:
Expand All @@ -18,21 +17,14 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Set up Go ${{ env.golang-version }}
uses: actions/[email protected]
with:
go-version: ${{ env.golang-version }}

- name: Use Go module caching
uses: actions/cache@v3
- name: Set up Go
uses: actions/[email protected]
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version: 1.22.4
cache-dependency-path: ./go.sum

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

- name: Test
run: go test ./...
Expand Down

0 comments on commit 04a8b66

Please sign in to comment.