Skip to content

Commit

Permalink
Added GitHub Actions as CI (TrinityCore#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdX7 authored Nov 20, 2022
1 parent 8d205ba commit fdf65de
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/gh-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: WPP

on:
push:
pull_request:

env:
DOTNET_VERSION: '6.0.x'

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
configuration: [Debug, Release]

runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration ${{ matrix.configuration }} --no-restore

- name: Execute unit tests
run: dotnet test --configuration ${{ matrix.configuration }} --no-build

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: WPP-${{ matrix.os }}-${{ matrix.configuration }}
path: WowPacketParser/bin/${{ matrix.configuration }}/

0 comments on commit fdf65de

Please sign in to comment.