Skip to content

feat: add remote treasure solver #51

feat: add remote treasure solver

feat: add remote treasure solver #51

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Pull Request
on:
pull_request:
workflow_dispatch:
jobs:
fetch-game-files:
uses: Dofus-Batteries-Included/workflows/.github/workflows/fetch-game-files.job.yml@main
build-release:
name: Build & Test
needs: fetch-game-files
runs-on: windows-latest
steps:
- name: Display build information
run: |
echo "Build id: ${{ needs.fetch-game-files.outputs.game_build_id }}"
echo "Version: ${{ needs.fetch-game-files.outputs.game_version }}"
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download Interop assemblies
uses: actions/download-artifact@v4
with:
name: interop-assemblies
path: src/Interop
- name: Install .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: cd src/; dotnet restore
- name: Build
env:
DofusBuildId: ${{ needs.fetch-game-files.outputs.game_build_id }}
DofusVersion: ${{ needs.fetch-game-files.outputs.game_version }}
run: cd src; dotnet build --configuration Release --no-restore -p:DofusBuildId=${{ needs.fetch-game-files.outputs.game_build_id }} -p:DofusVersion=${{ needs.fetch-game-files.outputs.game_version }}
- name: Test
run: cd src; dotnet test --configuration Release --no-build
permissions:
packages: read