Party base sync #852
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
pull_request: | |
types: | |
[opened, synchronize] | |
drafts: false | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
container: | |
image: garrettluskey/bannerlordcoop:latest | |
steps: | |
- name: Checkout Repo | |
run: | | |
git clone https://github.com/${{ github.repository }} | |
cd BannerlordCoop | |
git fetch origin "pull/${{ github.event.number }}/head:${{ github.event.pull_request.base.ref }}-PR-${{ github.event.number }}" | |
git checkout "${{ github.event.pull_request.base.ref }}-PR-${{ github.event.number }}" | |
- name: Link Game Assemblies Folder | |
run: | | |
ln -s /home/mb2 BannerlordCoop | |
- name: Build Solution | |
run: | | |
cd BannerlordCoop/source | |
dotnet build Coop.Core -c Release | |
- name: Run Unit Tests | |
run: | | |
cd BannerlordCoop/source | |
dotnet test -c Release --consoleLoggerParameters:ErrorsOnly |