Skip to content

chore(deps): update actions/cache action to v4.1.1 #967

chore(deps): update actions/cache action to v4.1.1

chore(deps): update actions/cache action to v4.1.1 #967

Workflow file for this run

name: build
on:
push:
branches:
- '**'
env:
DOTNET_NOLOGO: true
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
test-java:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: build
shell: pwsh
run: ./tools/build-java.ps1
test-dotnet:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
# fail-fast: false
matrix:
os:
- ubuntu-latest
# - macos-latest Doesn't work yet
- windows-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
- uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
with:
dotnet-version: |
6
8
dotnet-quality: ga
- name: prepare
run: dotnet restore
- name: tfm
# building net461 doesn't work on non windows
if: matrix.os != 'windows-latest'
run: echo "NoNet4=true" >> $GITHUB_ENV
- name: build
run: dotnet build --no-restore
- name: test
run: dotnet test --no-build
- name: Codecov
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
files: '**/TestResults/*/*.cobertura.xml'
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
build:
runs-on: windows-latest
timeout-minutes: 15
needs: [test-java, test-dotnet]
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
- name: prepare
run: dotnet restore
- name: build
run: dotnet build --no-restore -c Release
- name: pack
run: dotnet pack --no-build -o bin -c Release
- uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
with:
name: packages
path: bin/*.nupkg