-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 1.33 KB
/
pull_request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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: Build
run: cd src; dotnet build --configuration Release -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
permissions:
packages: read