Skip to content

Commit f36255b

Browse files
authored
Merge pull request #1189 from ydb-platform/update-actions
updated actions checkout, setup-go, golangci-lint-action, codeql-actions and upload-artifact
2 parents 24cd81a + 42c8bde commit f36255b

File tree

9 files changed

+32
-32
lines changed

9 files changed

+32
-32
lines changed

.github/workflows/breaking.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
contents: read
1717
steps:
1818
- name: Install Go
19-
uses: actions/setup-go@v3
19+
uses: actions/setup-go@v5
2020
with:
2121
go-version: "1.21"
2222
- name: Checkout code
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
- name: Install gorelease
2525
run: test -e ~/go/bin/gorelease || go install golang.org/x/exp/cmd/gorelease@latest
2626
- name: Check broken API changes

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout sources
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
- name: Changelog updated
1616
uses: Zomzog/[email protected]

.github/workflows/check-codegen.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222

2323
- name: Setup Go
24-
uses: actions/setup-go@v3
24+
uses: actions/setup-go@v5
2525
with:
2626
go-version: ${{ matrix.go-version }}
2727

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ jobs:
4545

4646
steps:
4747
- name: Checkout repository
48-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4949

5050
# Initializes the CodeQL tools for scanning.
5151
- name: Initialize CodeQL
52-
uses: github/codeql-action/init@v2
52+
uses: github/codeql-action/init@v3
5353
with:
5454
languages: ${{ matrix.language }}
5555
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -63,7 +63,7 @@ jobs:
6363
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6464
# If this step fails, then you should remove it and run the build manually (see below)
6565
- name: Autobuild
66-
uses: github/codeql-action/autobuild@v2
66+
uses: github/codeql-action/autobuild@v3
6767

6868
# ℹ️ Command-line programs to run using the OS shell.
6969
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -76,4 +76,4 @@ jobs:
7676
# ./location_of_script_within_repo/buildscript.sh
7777

7878
- name: Perform CodeQL Analysis
79-
uses: github/codeql-action/analyze@v2
79+
uses: github/codeql-action/analyze@v3

.github/workflows/examples.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
YDB_VERSION: ${{ matrix.ydb-version }}
3939
steps:
4040
- name: Checkout code
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
4242
- name: Install Go
43-
uses: actions/setup-go@v3
43+
uses: actions/setup-go@v5
4444
with:
4545
cache: true
4646
- name: Run basic example ${{ matrix.application }}
@@ -74,9 +74,9 @@ jobs:
7474
POSTGRES_CONNECTION_STRING: postgres://postgres:postgres@localhost:5432/basic?sslmode=disable
7575
steps:
7676
- name: Checkout code
77-
uses: actions/checkout@v3
77+
uses: actions/checkout@v4
7878
- name: Install Go
79-
uses: actions/setup-go@v3
79+
uses: actions/setup-go@v5
8080
with:
8181
cache: true
8282
- name: Run basic example ${{ matrix.application }} with postgres
@@ -97,9 +97,9 @@ jobs:
9797
SQLITE_CONNECTION_STRING: ${{ matrix.application }}.db
9898
steps:
9999
- name: Checkout code
100-
uses: actions/checkout@v3
100+
uses: actions/checkout@v4
101101
- name: Install Go
102-
uses: actions/setup-go@v3
102+
uses: actions/setup-go@v5
103103
with:
104104
cache: true
105105
- name: Run basic example ${{ matrix.application }} with sqlite

.github/workflows/lint.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
cancel-in-progress: true
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: golangci-lint
21-
uses: golangci/golangci-lint-action@v3
21+
uses: golangci/golangci-lint-action@v4
2222
with:
2323
version: ${{ env.GOLANGCI_LINT_VERSION }}
2424
args: --timeout=5m
@@ -29,11 +29,11 @@ jobs:
2929
cancel-in-progress: true
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3333
- name: generate examples golangci-lint config
3434
run: sed 's/github.com\/ydb-platform\/ydb-go-sdk\/v3/examples/g' .golangci.yml > examples/.golangci.yml
3535
- name: golangci-lint
36-
uses: golangci/golangci-lint-action@v3
36+
uses: golangci/golangci-lint-action@v4
3737
with:
3838
version: ${{ env.GOLANGCI_LINT_VERSION }}
3939
args: --timeout=5m
@@ -45,11 +45,11 @@ jobs:
4545
cancel-in-progress: true
4646
runs-on: ubuntu-latest
4747
steps:
48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@v4
4949
- name: generate slo golangci-lint config
5050
run: sed 's/github.com\/ydb-platform\/ydb-go-sdk\/v3/slo/g' .golangci.yml > tests/slo/.golangci.yml
5151
- name: golangci-lint
52-
uses: golangci/golangci-lint-action@v3
52+
uses: golangci/golangci-lint-action@v4
5353
with:
5454
version: ${{ env.GOLANGCI_LINT_VERSION }}
5555
args: --timeout=5m
@@ -61,9 +61,9 @@ jobs:
6161
cancel-in-progress: true
6262
runs-on: ubuntu-latest
6363
steps:
64-
- uses: actions/checkout@v3
64+
- uses: actions/checkout@v4
6565
- name: Install Go
66-
uses: actions/setup-go@v3
66+
uses: actions/setup-go@v5
6767
with:
6868
go-version: "1.21"
6969
- name: Install utilities

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
CHANGELOG_FILE: CHANGELOG.md
2929
GITHUB_TOKEN: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232
with:
3333
token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
3434
fetch-depth: 0

.github/workflows/slo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: Run SLO
2727
uses: ydb-platform/slo-tests@js-version
@@ -73,7 +73,7 @@ jobs:
7373
workload_build_context4: ../..
7474
workload_build_options4: -f Dockerfile --build-arg SRC_PATH=xorm --build-arg JOB_NAME=workload-xorm
7575

76-
- uses: actions/upload-artifact@v3
76+
- uses: actions/upload-artifact@v4
7777
if: always()
7878
with:
7979
name: slo-logs

.github/workflows/tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ jobs:
2222
runs-on: ${{ matrix.os }}-latest
2323
steps:
2424
- name: Checkout code
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
- name: Install Go
27-
uses: actions/setup-go@v3
27+
uses: actions/setup-go@v5
2828
with:
2929
go-version: ${{ matrix.go-version }}
3030
cache: true
3131
- name: Test
3232
run: go test -race -coverprofile unit.txt -covermode atomic ./...
3333
- name: Upload coverage report to Codecov
34-
uses: codecov/codecov-action@v3
34+
uses: codecov/codecov-action@v4
3535
with:
3636
file: ./unit.txt
3737
flags: unit,${{ matrix.os }},go-${{ matrix.go-version }}
@@ -71,16 +71,16 @@ jobs:
7171
HIDE_APPLICATION_OUTPUT: 1
7272
steps:
7373
- name: Checkout code
74-
uses: actions/checkout@v3
74+
uses: actions/checkout@v4
7575
- name: Install Go
76-
uses: actions/setup-go@v3
76+
uses: actions/setup-go@v5
7777
with:
7878
go-version: ${{ matrix.go-version }}
7979
cache: true
8080
- name: Integration test
8181
run: go test -race -tags integration -coverpkg=./... -coverprofile integration-secure.txt -covermode atomic ./tests/integration
8282
- name: Upload Test secure connection coverage report to Codecov
83-
uses: codecov/codecov-action@v3
83+
uses: codecov/codecov-action@v4
8484
with:
8585
file: ./integration-secure.txt
8686
flags: integration,${{ matrix.os }},go-${{ matrix.go-version }},ydb-${{ matrix.ydb-version }}

0 commit comments

Comments
 (0)