Added unit tests (#34) #90
Workflow file for this run
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: Dalamud plugin build | |
on: | |
push: | |
branches: [ '*' ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Download Dalamud | |
run: | | |
wget https://goatcorp.github.io/dalamud-distrib/latest.zip | |
mkdir -p $HOME/.xlcore/dalamud/Hooks/dev | |
unzip latest.zip -d $HOME/.xlcore/dalamud/Hooks/dev | |
- name: Build | |
run: dotnet build --no-restore --configuration Release --nologo | |
- name: Run tests | |
run: dotnet test --no-build --configuration Release --nologo | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ./EasyTranslate.DalamudPlugin/bin/x64/Release/* |