deff607bcb
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/cache dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: .NET Test
|
|
|
|
on:
|
|
pull_request: {}
|
|
push:
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v5
|
|
with:
|
|
dotnet-version: 8.0.4xx # Align with global.json (including roll forward rules)
|
|
|
|
- name: Cache Nuget
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: ~/.nuget/packages
|
|
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
|
|
|
|
- name: ⚒️ Run Test
|
|
run: ./build.sh test-and-pack
|
|
|
|
- name: Upload coverage reports to Codecov with GitHub Action
|
|
uses: codecov/codecov-action@v5
|
|
with:
|
|
files: Converters/**/coverage.xml
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
# Disabling this code for now, since we no longer need to publish nugets from this repo
|
|
# But keeping it around incase we ever need in the future.
|
|
# Ideally, I'd also like to move the nuget token to be an environment secret, and to have tight package scopes
|
|
# - name: Push to nuget.org
|
|
# if: ${{ inputs.deployNugets }}
|
|
# run: dotnet nuget push output/*.nupkg --source "https://api.nuget.org/v3/index.json" --api-key ${{ secrets.CONNECTORS_NUGET_TOKEN }}
|