Skip to content

Commit c8bc204

Browse files
author
valdis
committed
fix: some recommendations applied
1 parent 597156d commit c8bc204

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,32 @@ on:
55
- master
66
pull_request:
77
types: [opened, synchronize, reopened]
8+
concurrency:
9+
group: "build-${{ github.ref_name }}"
10+
cancel-in-progress: false
11+
812
jobs:
913
build:
1014
name: Build
1115
runs-on: windows-latest
1216
steps:
1317
- name: Set up JDK 11
14-
uses: actions/setup-java@v1
18+
uses: actions/setup-java@v4
1519
with:
1620
java-version: 1.11
1721

1822
- name: Checkout repository with submodules
19-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
2024
with:
2125
fetch-depth: 0
2226
submodules: recursive
23-
27+
- name: Cache NuGet packages
28+
uses: actions/cache@v3
29+
with:
30+
path: ~/.nuget/packages
31+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
32+
restore-keys: |
33+
${{ runner.os }}-nuget-
2434
- name: Cache SonarCloud packages
2535
uses: actions/cache@v4
2636
with:

.github/workflows/release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,29 @@ on:
33
push:
44
tags:
55
- "v[0-9]+.[0-9]+.[0-9]+"
6+
concurrency:
7+
group: "release-${{ github.ref_name }}"
8+
cancel-in-progress: false
9+
permissions:
10+
contents: write
11+
packages: write
12+
613
jobs:
714
build:
815
name: Release
916
runs-on: windows-latest
1017
steps:
1118
- name: Checkout
12-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
1320
with:
1421
submodules: recursive
22+
- name: Cache NuGet packages
23+
uses: actions/cache@v3
24+
with:
25+
path: ~/.nuget/packages
26+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
27+
restore-keys: |
28+
${{ runner.os }}-nuget-
1529
- name: Verify commit exists in origin/master
1630
run: |
1731
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*

0 commit comments

Comments
 (0)