c81692ee5a
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5 to 6. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v5...v6) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: '6' 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>
66 lines
1.9 KiB
YAML
66 lines
1.9 KiB
YAML
name: PR Test
|
|
|
|
on:
|
|
pull_request: {}
|
|
push:
|
|
branches:
|
|
- "main" # Need to run for codecov to compare against the BASE
|
|
|
|
|
|
jobs:
|
|
build:
|
|
env:
|
|
Solution: "Speckle.Sdk.sln"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v5
|
|
with:
|
|
dotnet-version: 8.x.x
|
|
cache: true
|
|
cache-dependency-path: "**/packages.lock.json"
|
|
|
|
- name: 📦 Tool Restore
|
|
run: dotnet tool restore
|
|
|
|
- name: 📄 Format
|
|
run: dotnet csharpier check .
|
|
|
|
- name: 📦 Restore
|
|
run: dotnet restore ${{ env.Solution }} --locked-mode
|
|
|
|
- name: 🏗️ Build
|
|
run: dotnet build ${{ env.Solution }} --configuration Release --no-restore -warnaserror
|
|
|
|
- name: 🔨 Unit Tests
|
|
run: dotnet test ${{ env.Solution }} --configuration Release --filter "Category!=Integration" --no-build --no-restore --verbosity=normal /p:AltCover=true /p:AltCoverAttributeFilter=ExcludeFromCodeCoverage
|
|
|
|
- name: 🎁 Pack
|
|
run: dotnet pack ${{ env.Solution }} --configuration Release --no-build
|
|
|
|
- name: Upload coverage reports to Codecov with GitHub Action
|
|
uses: codecov/codecov-action@v6
|
|
continue-on-error: true
|
|
with:
|
|
fail_ci_if_error: true
|
|
files: tests/**/coverage.xml
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
integration-test-internal:
|
|
uses: "./.github/workflows/integration-test.yml"
|
|
with:
|
|
docker-compose-file: "docker-compose-internal.yml"
|
|
use-internal-image: true
|
|
secrets:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
integration-test-public:
|
|
uses: "./.github/workflows/integration-test.yml"
|
|
with:
|
|
docker-compose-file: "docker-compose.yml"
|
|
secrets:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|