Skip to content

Commit f505bc3

Browse files
committed
chore: Update outdated GitHub Actions versions
1 parent 2213a59 commit f505bc3

13 files changed

Lines changed: 59 additions & 59 deletions

File tree

.github/workflows/c.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
c_compiler: cl
5959

6060
steps:
61-
- uses: actions/checkout@v4
61+
- uses: actions/checkout@v6
6262

6363
- name: Configure CMake
6464
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.

.github/workflows/cpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
c_compiler: cl
5959

6060
steps:
61-
- uses: actions/checkout@v4
61+
- uses: actions/checkout@v6
6262

6363
- name: Configure CMake
6464
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.

.github/workflows/dart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
dart-sdk: [stable]
2929
code-dir: ["codes/dart", "en/codes/dart"]
3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v6
3232
- name: Set up Dart ${{ matrix.dart-sdk }}
3333
uses: dart-lang/setup-dart@v1
3434
with:

.github/workflows/dotnet.yml

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
# This workflow will build a .NET project
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3-
4-
name: .NET
5-
6-
on:
7-
push:
8-
branches: ["main"]
9-
paths:
10-
- "codes/csharp/**/*.cs"
11-
- "en/codes/csharp/**/*.cs"
12-
pull_request:
13-
branches: ["main"]
14-
paths:
15-
- "codes/csharp/**/*.cs"
16-
- "en/codes/csharp/**/*.cs"
17-
workflow_dispatch:
18-
19-
jobs:
20-
build:
21-
name: .NET ${{ matrix.dotnet-version }} on ${{ matrix.os }}
22-
runs-on: ${{ matrix.os }}
23-
defaults:
24-
run:
25-
working-directory: ${{ matrix.code-dir }}
26-
strategy:
27-
matrix:
28-
os: [ubuntu-latest, macos-latest, windows-latest]
29-
dotnet-version: ["8.0.x"]
30-
code-dir: ["codes/csharp", "en/codes/csharp"]
31-
32-
steps:
33-
- uses: actions/checkout@v4
34-
35-
- name: Setup .NET ${{ matrix.dotnet-version }}
36-
uses: actions/setup-dotnet@v3
37-
with:
38-
dotnet-version: ${{ matrix.dotnet-version }}
39-
- name: Restore dependencies
40-
run: dotnet restore hello-algo.csproj
41-
- name: Build
42-
run: dotnet build --no-restore hello-algo.csproj
43-
- name: Test with dotnet
44-
run: dotnet test hello-algo.csproj
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET
5+
6+
on:
7+
push:
8+
branches: ["main"]
9+
paths:
10+
- "codes/csharp/**/*.cs"
11+
- "en/codes/csharp/**/*.cs"
12+
pull_request:
13+
branches: ["main"]
14+
paths:
15+
- "codes/csharp/**/*.cs"
16+
- "en/codes/csharp/**/*.cs"
17+
workflow_dispatch:
18+
19+
jobs:
20+
build:
21+
name: .NET ${{ matrix.dotnet-version }} on ${{ matrix.os }}
22+
runs-on: ${{ matrix.os }}
23+
defaults:
24+
run:
25+
working-directory: ${{ matrix.code-dir }}
26+
strategy:
27+
matrix:
28+
os: [ubuntu-latest, macos-latest, windows-latest]
29+
dotnet-version: ["8.0.x"]
30+
code-dir: ["codes/csharp", "en/codes/csharp"]
31+
32+
steps:
33+
- uses: actions/checkout@v6
34+
35+
- name: Setup .NET ${{ matrix.dotnet-version }}
36+
uses: actions/setup-dotnet@v3
37+
with:
38+
dotnet-version: ${{ matrix.dotnet-version }}
39+
- name: Restore dependencies
40+
run: dotnet restore hello-algo.csproj
41+
- name: Build
42+
run: dotnet build --no-restore hello-algo.csproj
43+
- name: Test with dotnet
44+
run: dotnet test hello-algo.csproj

.github/workflows/go.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
code-dir: ["codes/go", "en/codes/go"]
2828

2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v6
3131

3232
- name: Setup Go ${{ matrix.go-version }}
33-
uses: actions/setup-go@v3
33+
uses: actions/setup-go@v6
3434
with:
3535
go-version: ${{ matrix.go-version }}
3636
- name: Check out code into the Go module directory

.github/workflows/java.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
code-dir: ["codes/java", "en/codes/java"]
2626
name: Java ${{ matrix.Java }} sample
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v6
2929
- name: Setup java
30-
uses: actions/setup-java@v3
30+
uses: actions/setup-java@v5
3131
with:
3232
distribution: "temurin"
3333
java-version: ${{ matrix.java }}

.github/workflows/javascript.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
os: [ubuntu-latest, macos-latest, windows-latest]
2222
code-dir: ["codes/javascript", "en/codes/javascript"]
2323
steps:
24-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
2525
- uses: actions/setup-node@v6
2626
with:
2727
node-version: 24.x

.github/workflows/kotlin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
name: Kotlin on ${{ matrix.os }}
2525
steps:
26-
- uses: actions/checkout@v4.1.2
26+
- uses: actions/checkout@v6
2727

2828
- name: Build JAR
2929
run: kotlinc ${{ matrix.code-dir }}/**/*.kt -include-runtime -d ${{ matrix.code-dir }}/build/test.jar

.github/workflows/python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
python-version: ["3.10"]
3030
code-dir: ["codes/python", "en/codes/python"]
3131
steps:
32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v6
3333
- name: Set up Python ${{ matrix.python-version }}
34-
uses: actions/setup-python@v4
34+
uses: actions/setup-python@v6
3535
with:
3636
python-version: ${{ matrix.python-version }}
3737
- name: Install dependencies

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
code-dir: ["codes/ruby", "en/codes/ruby"]
3333

3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v6
3636
- name: Set up Ruby
3737
uses: ruby/setup-ruby@v1
3838
with:

0 commit comments

Comments
 (0)