diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ebf399f..a33915c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,7 @@ on: [push, pull_request] jobs: build: + name: Build Nightlies needs: [test] runs-on: ubuntu-latest strategy: @@ -30,16 +31,11 @@ jobs: - name: Upload Files uses: actions/upload-artifact@v3 with: - name: Nightly ${{ matrix.runtime }} + name: nightly_${{ matrix.runtime }} path: build/ test: - + name: Tests runs-on: ubuntu-latest - strategy: - matrix: - framework-version: [ 'net6.0' ] - fail-fast: false - steps: - name: Checkout uses: actions/checkout@v2 @@ -55,7 +51,7 @@ jobs: - name: Install dependencies run: dotnet restore BitMod.sln - - name: Build for ${{ matrix.framework-version }} - run: dotnet build tests/BitMod.Tests --framework ${{ matrix.framework-version }} --configuration Release --no-restore - - name: Test for ${{ matrix.framework-version }} - run: dotnet test tests/BitMod.Tests --framework ${{ matrix.framework-version }} --configuration Release --no-build --no-restore --verbosity normal + - name: Build + run: dotnet build tests/BitMod.Tests --framework net6.0 --configuration Release --no-restore + - name: Test + run: dotnet test tests/BitMod.Tests --framework net6.0 --configuration Release --no-build --no-restore --verbosity normal diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b3687b8..ed53ce7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,6 +5,9 @@ on: # Replace `main` with your branch’s name push: branches: ["master"] + # Only run if docs actually change + paths: + - "docs/**" # Specify to run a workflow manually from the Actions tab on GitHub workflow_dispatch: diff --git a/standalone/BitMod.Plugins/PluginSystem.cs b/standalone/BitMod.Plugins/PluginSystem.cs index 80c7c25..2a912c0 100644 --- a/standalone/BitMod.Plugins/PluginSystem.cs +++ b/standalone/BitMod.Plugins/PluginSystem.cs @@ -132,7 +132,7 @@ internal void Unload(Plugin plugin) internal void Deleted(string name) { - foreach (Plugin plugin1 in _plugins.Where(plugin => plugin.Name == name)) + foreach (Plugin plugin1 in _plugins.Where(plugin => plugin.Name == name).ToList()) { plugin1.UnloadPlugin(); }