Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsv committed Apr 8, 2024
1 parent ada4e6a commit b88195e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/go_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,26 @@ name: Go lint
on:
push:
branches: [ main ]

pull_request_target:
types: [opened, synchronize, reopened]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Set up Go ^1.19
uses: actions/setup-go@v3
with:
go-version: ^1.19

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0


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

- name: Lint
run: make lint

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test_on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ jobs:
DBGSYNCLOG: trace
DBGSYNCON: true
steps:
- name: Set up Go ^1.19
uses: actions/setup-go@v3
with:
go-version: ^1.19

- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

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

- name: Test without coverage
if: matrix.platform == 'macos-latest' || matrix.platform == 'windows-latest'
run: make test
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
DBGSYNCLOG: trace
DBGSYNCON: true
steps:
- name: Set up Go ^1.19
uses: actions/setup-go@v3
with:
go-version: ^1.19

- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

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

- name: Test without coverage
if: matrix.platform == 'macos-latest' || matrix.platform == 'windows-latest'
run: make test
Expand Down

0 comments on commit b88195e

Please sign in to comment.