2494b160e8
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout 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>
54 lines
1.6 KiB
YAML
54 lines
1.6 KiB
YAML
name: Integration Test
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
docker-compose-file:
|
|
required: true
|
|
type: string
|
|
use-github-container-registry:
|
|
default: false
|
|
type: boolean
|
|
|
|
jobs:
|
|
integration-test:
|
|
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: 🔐 Login to Github Container Registry
|
|
if: ${{ inputs.use-github-container-registry }}
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: "ghcr.io"
|
|
username: ${{ github.actor }}
|
|
password: ${{ github.token }}
|
|
|
|
- name: ⚙️ Spin up Server
|
|
run: docker compose -f ${{ inputs.docker-compose-file }} up --wait
|
|
|
|
- name: 📦 Restore
|
|
run: dotnet restore ${{ env.Solution }} --locked-mode
|
|
|
|
- name: 🏗️ Build
|
|
run: dotnet build ${{ env.Solution }} --configuration Release --no-restore -warnaserror
|
|
|
|
- name: 🔨 Integration Tests
|
|
run: dotnet test ${{ env.Solution }} --filter "Category=Integration" --configuration Release --no-build --no-restore --verbosity=normal /p:AltCover=true /p:AltCoverAttributeFilter=ExcludeFromCodeCoverage
|
|
|
|
- name: Upload coverage reports to Codecov with GitHub Action
|
|
uses: codecov/codecov-action@v5
|
|
with:
|
|
files: tests/**/coverage.xml
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|