Skip to content

Commit 941b02b

Browse files
committed
.github: Move test workflow to pre-merge
1 parent 83351b9 commit 941b02b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/pre-merge.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ jobs:
3737
uses: golangci/golangci-lint-action@v8
3838
with:
3939
version: v2.5.0
40+
41+
test:
42+
uses: ./.github/workflows/test.yml
43+
secrets: inherit

.github/workflows/test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
name: Tests
22

33
on:
4-
push:
5-
pull_request:
4+
workflow_call:
65

76
jobs:
87
test:
9-
name: Run on Ubuntu
10-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-24.04
119
steps:
12-
- name: Clone the code
10+
- name: Checkout
1311
uses: actions/checkout@v4
14-
1512
- name: Setup Go
1613
uses: actions/setup-go@v5
1714
with:

0 commit comments

Comments
 (0)