Skip to content

chore(deps): update actions/checkout action to v4.1.5 #838

chore(deps): update actions/checkout action to v4.1.5

chore(deps): update actions/checkout action to v4.1.5 #838

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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- 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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
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@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
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@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
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@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: packages
path: bin/*.nupkg