diff --git a/.github/workflows/gh-actions.yml b/.github/workflows/gh-actions.yml index c23e3f1..ea22615 100644 --- a/.github/workflows/gh-actions.yml +++ b/.github/workflows/gh-actions.yml @@ -6,11 +6,18 @@ on: jobs: build: - runs-on: ubuntu-20.04 - container: - image: quantconnect/lean:foundation + runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 + + - name: Liberate disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: true + large-packages: false + docker-images: false + swap-storage: false - name: Checkout Lean Same Branch id: lean-same-branch @@ -31,8 +38,13 @@ jobs: - name: Move Lean run: mv Lean ../Lean - - name: Build - run: dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.Wolverine.sln - - - name: Run Tests - run: dotnet test ./QuantConnect.Wolverine.Tests/bin/Release/QuantConnect.Brokerages.Wolverine.Tests.dll + - uses: addnab/docker-run-action@v3 + with: + image: quantconnect/lean:foundation + options: --workdir /__w/Lean.Brokerages.Wolverine/Lean.Brokerages.Wolverine -v /home/runner/work:/__w -e QC_JOB_USER_ID=${{ secrets.JOB_USER_ID }} -e QC_API_ACCESS_TOKEN=${{ secrets.API_ACCESS_TOKEN }} -e QC_JOB_ORGANIZATION_ID=${{ secrets.JOB_ORGANIZATION_ID }} + shell: bash + run: | + # Build + dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.Wolverine.sln && \ + # Run Tests + dotnet test ./QuantConnect.Wolverine.Tests/bin/Release/QuantConnect.Brokerages.Wolverine.Tests.dll diff --git a/QuantConnect.Wolverine.Tests/QuantConnect.Wolverine.Tests.csproj b/QuantConnect.Wolverine.Tests/QuantConnect.Wolverine.Tests.csproj index 325a735..393cf74 100644 --- a/QuantConnect.Wolverine.Tests/QuantConnect.Wolverine.Tests.csproj +++ b/QuantConnect.Wolverine.Tests/QuantConnect.Wolverine.Tests.csproj @@ -3,7 +3,7 @@ Release AnyCPU - net6.0 + net9.0 enable enable @@ -21,15 +21,17 @@ - - + + all - runtime; build; native; contentfiles; analyzers; buildtransitive + + + diff --git a/QuantConnect.Wolverine/QuantConnect.Wolverine.csproj b/QuantConnect.Wolverine/QuantConnect.Wolverine.csproj index 4d90285..8c57542 100644 --- a/QuantConnect.Wolverine/QuantConnect.Wolverine.csproj +++ b/QuantConnect.Wolverine/QuantConnect.Wolverine.csproj @@ -2,7 +2,7 @@ Release AnyCPU - net6.0 + net9.0 enable enable QuantConnect.Brokerages.Wolverine