Skip to content

Commit 7dd588f

Browse files
committed
update workflows
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent 0d25680 commit 7dd588f

File tree

3 files changed

+29
-9
lines changed

3 files changed

+29
-9
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Setup-Go'
2+
description: 'Setup go with dependencies'
3+
runs:
4+
using: composite
5+
steps:
6+
7+
- uses: actions/setup-go@v6
8+
with:
9+
go-version-file: 'go.mod'
10+
cache-dependency-path: "go.sum"
11+
check-latest: true
12+
13+
- name: GoLang dependencies
14+
shell: bash
15+
run: |
16+
go mod vendor
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: 'Setup-Runner'
2+
description: 'Setup runner'
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Set Swap Space
7+
uses: pierotofy/set-swap-space@fc79b3f67fa8a838184ce84a674ca12238d2c761
8+
with:
9+
swap-size-gb: 12

.github/workflows/codecheck.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,11 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010

11-
- name: Set Swap Space
12-
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c
13-
with:
14-
swap-size-gb: 12
11+
- name: Setup runner
12+
uses: ./.github/actions/setup-runner
1513

16-
- uses: actions/setup-go@v5
17-
with:
18-
go-version-file: 'go.mod'
19-
cache-dependency-path: "go.sum"
20-
check-latest: true
14+
- name: Setup go
15+
uses: ./.github/actions/setup-go
2116

2217
- name: Run Golangci lint
2318
uses: golangci/golangci-lint-action@v7

0 commit comments

Comments
 (0)