Skip to content

Commit 43dcf10

Browse files
committed
ci: standardise workflow YAML formatting and use go.mod for version pinning
- Convert single quotes to double quotes for consistency - Replace hardcoded go-version with go-version-file for go.mod - Remove trailing whitespace - Standardise branch array formatting Signed-off-by: Martin Wimpress <code@wimpress.io>
1 parent 3643358 commit 43dcf10

4 files changed

Lines changed: 14 additions & 15 deletions

File tree

.github/workflows/ffmpeg-release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'FFmpeg library version (e.g., 8.0.0.1)'
7+
description: "FFmpeg library version (e.g., 8.0.0.1)"
88
required: true
99
push:
1010
tags:
11-
- 'lib-[0-9]*.[0-9]*.[0-9]*.[0-9]*'
11+
- "lib-[0-9]*.[0-9]*.[0-9]*.[0-9]*"
1212

1313
permissions:
1414
pull-requests: write
@@ -48,7 +48,7 @@ jobs:
4848

4949
- uses: actions/setup-go@v6
5050
with:
51-
go-version: '1.24'
51+
go-version-file: go.mod
5252
cache: true
5353

5454
- uses: dtolnay/rust-toolchain@stable
@@ -118,4 +118,3 @@ jobs:
118118
- Linux arm64
119119
- macOS x86 (Intel)
120120
- macOS arm64 (Apple Silicon)
121-

.github/workflows/ffmpeg-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: FFmpeg library test
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
paths:
7-
- '.github/workflows/ffmpeg-test.yml'
8-
- 'internal/builder/**'
9-
- '*.gen.go'
7+
- ".github/workflows/ffmpeg-test.yml"
8+
- "internal/builder/**"
9+
- "*.gen.go"
1010
workflow_dispatch:
1111

1212
permissions:
@@ -39,7 +39,7 @@ jobs:
3939

4040
- uses: actions/setup-go@v6
4141
with:
42-
go-version: '1.24'
42+
go-version-file: go.mod
4343
cache: true
4444

4545
- uses: dtolnay/rust-toolchain@stable

.github/workflows/go-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Go module version (e.g., 8.0.0.1)'
7+
description: "Go module version (e.g., 8.0.0.1)"
88
required: true
99
push:
1010
tags:
11-
- 'v[0-9]*.[0-9]*.[0-9]*.[0-9]*'
11+
- "v[0-9]*.[0-9]*.[0-9]*.[0-9]*"
1212

1313
permissions:
1414
contents: write
@@ -33,7 +33,7 @@ jobs:
3333

3434
- uses: actions/setup-go@v6
3535
with:
36-
go-version: '1.24'
36+
go-version-file: go.mod
3737
cache: true
3838

3939
- name: Install libclang for generator

.github/workflows/go-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Go tests
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88
workflow_dispatch:
99

1010
jobs:
@@ -33,7 +33,7 @@ jobs:
3333

3434
- uses: actions/setup-go@v6
3535
with:
36-
go-version: '1.24'
36+
go-version-file: go.mod
3737
cache: true
3838

3939
- name: Install libclang for generator

0 commit comments

Comments
 (0)