File tree 4 files changed +31
-12
lines changed
4 files changed +31
-12
lines changed Original file line number Diff line number Diff line change 21
21
22
22
jobs :
23
23
benchmark :
24
- runs-on : ubuntu-latest
24
+ permissions :
25
+ contents : read
26
+ runs-on : ubuntu-24.04
25
27
timeout-minutes : 360 # Default: 360 minutes
26
- strategy :
27
- fail-fast : true
28
28
steps :
29
29
- uses : Cysharp/Actions/.github/actions/checkout@main
30
30
- uses : Cysharp/Actions/.github/actions/setup-dotnet@main
Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
build-dotnet :
13
- runs-on : ${{ matrix.os }}
14
- timeout-minutes : 10
15
13
strategy :
16
14
matrix :
17
- os : [ubuntu-latest, windows-latest]
15
+ os : [ubuntu-24.04, windows-latest]
16
+ permissions :
17
+ contents : read
18
+ runs-on : ${{ matrix.os }}
19
+ timeout-minutes : 10
18
20
steps :
19
21
- uses : Cysharp/Actions/.github/actions/checkout@main
20
22
- uses : Cysharp/Actions/.github/actions/setup-dotnet@main
24
26
- run : dotnet test -c Release tests/System.Linq.Tests/System.Linq.Tests.slnx --no-build
25
27
26
28
check-codecov-token :
27
- runs-on : ubuntu-latest
29
+ permissions :
30
+ contents : read
31
+ runs-on : ubuntu-24.04
32
+ timeout-minutes : 10
28
33
outputs :
29
34
run_codecoverage : ${{ steps.check-token.outputs.token_exists }}
30
35
steps :
45
50
code-coverage :
46
51
if : ${{ needs.check-codecov-token.outputs.run_codecoverage == 'true' }} # secrets can't referenced in `if` so it needs separate job.
47
52
needs : check-codecov-token
48
- runs-on : ubuntu-latest
53
+ permissions :
54
+ contents : read
55
+ runs-on : ubuntu-24.04
49
56
timeout-minutes : 30
50
57
steps :
51
58
- uses : Cysharp/Actions/.github/actions/checkout@main
@@ -68,13 +75,13 @@ jobs:
68
75
$sessionId = 'ZLinq'
69
76
70
77
dotnet coverage collect --session-id $sessionId --nologo --settings codecoverage.runsettings --server-mode --background
71
- try
78
+ try
72
79
{
73
80
dotnet coverage connect $sessionId --nologo "dotnet test ../ -c Release --framework net9.0 --no-build"
74
-
81
+
75
82
dotnet coverage connect $sessionId --nologo "dotnet test -c Release System.Linq.Tests/System.Linq.Tests.slnx --framework net9.0 --no-build"
76
83
}
77
- finally
84
+ finally
78
85
{
79
86
dotnet coverage shutdown $sessionId --nologo --timeout 60000
80
87
}
Original file line number Diff line number Diff line change 14
14
15
15
jobs :
16
16
update-packagejson :
17
+ permissions :
18
+ contents : write
17
19
uses : Cysharp/Actions/.github/workflows/update-packagejson.yaml@main
18
20
with :
19
21
file-path : |
23
25
24
26
build-dotnet :
25
27
needs : [update-packagejson]
26
- runs-on : ubuntu-latest
28
+ permissions :
29
+ contents : read
30
+ runs-on : ubuntu-24.04
27
31
timeout-minutes : 10
28
32
steps :
29
33
- uses : Cysharp/Actions/.github/actions/checkout@main
41
45
# release
42
46
create-release :
43
47
needs : [update-packagejson, build-dotnet]
48
+ permissions :
49
+ contents : write
44
50
uses : Cysharp/Actions/.github/workflows/create-release.yaml@main
45
51
with :
46
52
commit-id : ${{ needs.update-packagejson.outputs.sha }}
53
59
cleanup :
54
60
if : ${{ needs.update-packagejson.outputs.is-branch-created == 'true' }}
55
61
needs : [update-packagejson, build-dotnet]
62
+ permissions :
63
+ contents : write
56
64
uses : Cysharp/Actions/.github/workflows/clean-packagejson-branch.yaml@main
57
65
with :
58
66
branch : ${{ needs.update-packagejson.outputs.branch-name }}
Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
stale :
10
+ permissions :
11
+ contents : read
12
+ pull-requests : write
13
+ issues : write
10
14
uses : Cysharp/Actions/.github/workflows/stale-issue.yaml@main
You can’t perform that action at this time.
0 commit comments