Skip to content

Commit 99b07f3

Browse files
authored
Update workflows (#760)
* github/workflows: update action versions Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com> * golangci: migrate to v2 Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com> * fix linting complains Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com> * Makefile: update golangci-lint version and link lint to linters Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com> * Update changelog Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com> * github/workflows: adjust link check arguments to new version Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com> * github/workflows: use codecov token Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com> * github/workflows: fix codecov args Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com> --------- Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
1 parent 5a6718e commit 99b07f3

17 files changed

Lines changed: 180 additions & 168 deletions

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- name: GitHub App token
1717
id: app-token
18-
uses: actions/create-github-app-token@v1
18+
uses: actions/create-github-app-token@v2
1919
with:
2020
app-id: ${{ secrets.APP_ID }}
2121
private-key: ${{ secrets.APP_PRIVATE_KEY }}

.github/workflows/changelog_verifier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
verify-changelog:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v6
1212
with:
1313
token: ${{ secrets.GITHUB_TOKEN }}
1414
ref: ${{ github.event.pull_request.head.sha }}

.github/workflows/dependabot_pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
private-key: ${{ secrets.APP_PRIVATE_KEY }}
2525

2626
- name: Check out code
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2828
with:
2929
token: ${{ steps.app-token.outputs.token }}
3030

3131
- name: Update the changelog
32-
uses: dangoslen/dependabot-changelog-helper@v3
32+
uses: dangoslen/dependabot-changelog-helper@v4
3333
with:
3434
version: 'Unreleased'
3535

@@ -40,7 +40,7 @@ jobs:
4040
run: prettier --prose-wrap never --write **/*.md
4141

4242
- name: Commit the changes
43-
uses: stefanzweifel/git-auto-commit-action@v5
43+
uses: stefanzweifel/git-auto-commit-action@v7
4444
with:
4545
commit_message: "Update changelog"
4646
branch: ${{ github.head_ref }}

.github/workflows/license.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v6
1212

1313
- name: Check license headers
1414
run: |

.github/workflows/links.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v6
1212
- name: lychee Link Checker
1313
id: lychee
14-
uses: lycheeverse/lychee-action@v2.0.2
14+
uses: lycheeverse/lychee-action@v2.7.0
1515
with:
16-
args: --accept=200,403,429 "**/*.html" "**/*.md" "**/*.txt" "**/*.json" --exclude "https://opensearch-domain.region.com/" --exclude "https://github.com/\[your*" --exclude "https://localhost:9200" --exclude-mail
16+
args: --accept=200,403,429 "**/*.html" "**/*.md" "**/*.txt" "**/*.json" --exclude "https://opensearch-domain.region.com/" --exclude "https://github.com/\[your*" --exclude "https://localhost:9200"
1717
env:
1818
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
1919
- name: Fail if there were link errors

.github/workflows/lint.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,20 @@ jobs:
1010
name: Lint
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-go@v5
13+
- uses: actions/checkout@v6
14+
- uses: actions/setup-go@v6
1515
with: { go-version-file: 'go.mod' }
1616
- name: golangci-lint
17-
uses: golangci/golangci-lint-action@v3
17+
uses: golangci/golangci-lint-action@v9
1818
with:
19-
version: v1.64.8
20-
args: -v -c .golangci.yml
19+
version: v2.7.2
2120
only-new-issues: true
2221

2322
prettify:
2423
name: Prettify
2524
runs-on: ubuntu-latest
2625
steps:
27-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v6
2827
- name: Install dependencies
2928
run: npm i -g prettier
3029
- name: Check markdown files

.github/workflows/test-compatibility.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
- { opensearch_version: 2.19.2 }
3434
- { opensearch_version: 3.0.0 }
3535
steps:
36-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@v6
3737

38-
- uses: actions/setup-go@v5
38+
- uses: actions/setup-go@v6
3939
with: { go-version-file: 'go.mod' }
4040

4141
- run: go version

.github/workflows/test-integration-unreleased.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- { branch: 'main', java-version: '21' }
1515
steps:
1616
- name: Checkout OpenSearch
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818
with:
1919
repository: opensearch-project/OpenSearch
2020
ref: ${{ matrix.entry.branch }}
@@ -32,7 +32,7 @@ jobs:
3232
path: opensearch/distribution/archives/linux-tar/build/distributions
3333
key: ${{ steps.get-key.outputs.key }}
3434

35-
- uses: actions/setup-java@v4
35+
- uses: actions/setup-java@v5
3636
with:
3737
distribution: 'temurin'
3838
java-version: ${{ matrix.entry.java-version }}
@@ -57,12 +57,12 @@ jobs:
5757
for attempt in {1..20}; do sleep 5; if curl -s localhost:9200; then echo '=====> ready'; break; fi; echo '=====> waiting...'; done
5858
5959
- name: Checkout Go Client
60-
uses: actions/checkout@v4
60+
uses: actions/checkout@v6
6161
with:
6262
path: go-client
6363

6464
- name: Setup Go
65-
uses: actions/setup-go@v5
65+
uses: actions/setup-go@v6
6666
with: { go-version-file: 'go-client/go.mod' }
6767

6868
- name: Integration test
@@ -73,7 +73,7 @@ jobs:
7373

7474
- name: Save server logs
7575
if: failure()
76-
uses: actions/upload-artifact@v4
76+
uses: actions/upload-artifact@v5
7777
with:
7878
name: opensearch-logs-${{ matrix.entry.branch }}
7979
path: |

.github/workflows/test-integration.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
name: Tests
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-go@v5
14+
- uses: actions/checkout@v6
15+
- uses: actions/setup-go@v6
1616
with: { go-version-file: 'go.mod' }
1717
- run: go version
1818
- name: Increase system limits
@@ -35,8 +35,8 @@ jobs:
3535
env:
3636
SECURE_INTEGRATION: true
3737
steps:
38-
- uses: actions/checkout@v4
39-
- uses: actions/setup-go@v5
38+
- uses: actions/checkout@v6
39+
- uses: actions/setup-go@v6
4040
with: { go-version-file: 'go.mod' }
4141
- run: go version
4242
- name: Increase system limits
@@ -52,7 +52,8 @@ jobs:
5252
if curl -s -ku admin:myStrongPassword123! https://localhost:9200; \
5353
then echo '=====> ready'; break; fi; if [ $attempt == 25 ]; then exit 1; fi; echo '=====> waiting...'; done
5454
- run: make cluster.get-cert test-integ-core test-integ-plugins race=true coverage=true
55-
- uses: codecov/codecov-action@v4
55+
- uses: codecov/codecov-action@v5
5656
with:
57-
file: tmp/integ.cov
57+
token: ${{ secrets.CODECOV_TOKEN }}
58+
files: tmp/integ.cov
5859
flags: integration

.github/workflows/test-unit.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,27 @@ jobs:
1414
os: [ubuntu-latest, windows-latest, macOS-latest]
1515
fail-fast: false
1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-go@v5
17+
- uses: actions/checkout@v6
18+
- uses: actions/setup-go@v6
1919
with: { go-version-file: 'go.mod' }
2020
- run: go version
2121
- run: make test-unit race=true
2222
if: matrix.os != 'ubuntu-latest'
2323
- run: make test-unit race=true coverage=true
2424
if: matrix.os == 'ubuntu-latest'
25-
- uses: codecov/codecov-action@v4
25+
- uses: codecov/codecov-action@v5
2626
with:
27-
file: tmp/unit.cov
27+
token: ${{ secrets.CODECOV_TOKEN }}
28+
files: tmp/unit.cov
2829
flags: unit
2930
if: matrix.os == 'ubuntu-latest'
3031

3132
bench:
3233
name: Benchmarks
3334
runs-on: ubuntu-latest
3435
steps:
35-
- uses: actions/checkout@v4
36-
- uses: actions/setup-go@v5
36+
- uses: actions/checkout@v6
37+
- uses: actions/setup-go@v6
3738
with: { go-version-file: 'go.mod' }
3839
- run: go version
3940
- run: make test-bench

0 commit comments

Comments
 (0)