Skip to content

Commit 888fab6

Browse files
committed
Update GitHub actions
actions/setup-go: v4 -> v5 actions/upload-artifact: v3 -> v4 goreleaser/goreleaser-action: v4 -> v5 go-version: ^1.18 -> ^1.20
1 parent 348a337 commit 888fab6

File tree

7 files changed

+66
-12
lines changed

7 files changed

+66
-12
lines changed

.github/workflows/build-publish.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
branches:
88
- main
9+
workflow_dispatch:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ github.ref_name != 'main' }}
914

1015
env:
1116
REGISTRY: ghcr.io

.github/workflows/buildTestBinaries.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
branches:
99
- main
1010
pull_request:
11+
workflow_dispatch:
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: ${{ github.ref_name != 'main' }}
1116

1217
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1318
jobs:
@@ -23,7 +28,7 @@ jobs:
2328
with:
2429
fetch-depth: 0
2530
submodules: true
26-
- uses: actions/setup-go@v4
31+
- uses: actions/setup-go@v5
2732
with:
2833
go-version: "^1.20" # The Go version to download (if necessary) and use.
2934

@@ -45,7 +50,7 @@ jobs:
4550
UI_FILE: ${{ steps.vars.outputs.ui_file }}
4651

4752
- name: Upload assets
48-
uses: actions/upload-artifact@v3
53+
uses: actions/upload-artifact@v4
4954
with:
5055
name: client_application-${{ steps.vars.outputs.version }}
5156
path: |

.github/workflows/checkFormat.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
pull_request:
66
branches:
77
- main
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ github.ref_name != 'main' }}
813

914
jobs:
1015
format:
@@ -15,7 +20,7 @@ jobs:
1520
with:
1621
# fetch branches and history so `git merge-base` in check-format-on-diff works correctly
1722
fetch-depth: 0
18-
- uses: actions/setup-go@v4
23+
- uses: actions/setup-go@v5
1924
with:
2025
go-version: "^1.20" # The Go version to download (if necessary) and use.
2126

.github/workflows/golangci-lint.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,19 @@ on:
99
pull_request:
1010
branches:
1111
- main
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: ${{ github.ref_name != 'main' }}
17+
1218
jobs:
1319
golangci:
1420
name: lint
1521
runs-on: ubuntu-latest
1622
steps:
1723
- uses: actions/checkout@v4
18-
- uses: actions/setup-go@v4
24+
- uses: actions/setup-go@v5
1925
with:
2026
go-version: "^1.20" # The Go version to download (if necessary) and use.
2127
- run: go version

.github/workflows/release.yml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@ name: goreleaser
22

33
on:
44
push:
5-
# run only against tags
5+
branches:
6+
- main
67
tags:
7-
- '*'
8+
# Create a release on a tag push
9+
- "*"
10+
pull_request:
11+
workflow_dispatch:
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: ${{ github.ref_name != 'main' }}
816

917
permissions:
1018
contents: write
@@ -26,17 +34,32 @@ jobs:
2634
run: git fetch --force --tags
2735
-
2836
name: Set up Go
29-
uses: actions/setup-go@v4
37+
uses: actions/setup-go@v5
3038
with:
3139
go-version: 1.20
3240

3341
- name: Set ui_file
3442
id: vars
3543
run: |
3644
echo "ui_file=$(pwd)/.tmp/ui.tar.gz" >> $GITHUB_OUTPUT
37-
-
38-
name: Run GoReleaser
39-
uses: goreleaser/goreleaser-action@v4
45+
46+
- name: Dry-run GoReleaser
47+
if: ${{ github.ref_type != 'tag' }}
48+
uses: goreleaser/goreleaser-action@v5
49+
with:
50+
# either 'goreleaser' (default) or 'goreleaser-pro'
51+
distribution: goreleaser
52+
version: latest
53+
args: release --rm-dist --skip-validate --skip-publish
54+
env:
55+
UI_SEPARATOR: "--------UI--------"
56+
UI_FILE: ${{ steps.vars.outputs.ui_file }}
57+
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
58+
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
59+
60+
- name: Run GoReleaser
61+
if: ${{ github.ref_type == 'tag' }}
62+
uses: goreleaser/goreleaser-action@v5
4063
with:
4164
# either 'goreleaser' (default) or 'goreleaser-pro'
4265
distribution: goreleaser

.github/workflows/staticAnalysis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@ on:
55
pull_request:
66
branches:
77
- main
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ github.ref_name != 'main' }}
813

914
jobs:
1015
analysis:
1116
runs-on: ubuntu-latest
1217

1318
steps:
1419
- uses: actions/checkout@v4
15-
- uses: actions/setup-go@v4
20+
- uses: actions/setup-go@v5
1621
with:
1722
go-version: "^1.20" # The Go version to download (if necessary) and use.
1823
- run: go version

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
tags:
1111
- "*"
1212
pull_request:
13+
workflow_dispatch:
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: ${{ github.ref_name != 'main' }}
1318

1419
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1520
jobs:
@@ -23,7 +28,7 @@ jobs:
2328
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2429
- uses: actions/checkout@v4
2530

26-
- uses: actions/setup-go@v4
31+
- uses: actions/setup-go@v5
2732
with:
2833
go-version: "^1.20" # The Go version to download (if necessary) and use.
2934

0 commit comments

Comments
 (0)