Fix Full DPS breakdown and gem dropdowns showing the wrong name for Companion / Spectre skills #3885
Workflow file for this run
This file contains hidden or 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: Run Tests | |
| on: | |
| push: | |
| branches: [ dev ] | |
| pull_request: | |
| branches: [ dev ] | |
| workflow_dispatch: | |
| jobs: | |
| run_tests: | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/pathofbuildingcommunity/pathofbuilding-tests:latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| shard: [0, 1, 2] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Run tests | |
| run: | | |
| set -eu | |
| shard_count=3 | |
| shard="${{ matrix.shard }}" | |
| index=0 | |
| found=0 | |
| for spec in $(find spec/System -name '*_spec.lua' | sort); do | |
| if [ $((index % shard_count)) -eq "$shard" ]; then | |
| found=1 | |
| echo "::group::$spec" | |
| if ! busted --lua=luajit "../$spec"; then | |
| echo "::endgroup::" | |
| exit 1 | |
| fi | |
| echo "::endgroup::" | |
| fi | |
| index=$((index + 1)) | |
| done | |
| [ "$found" -eq 1 ] | |
| check_modcache: | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/pathofbuildingcommunity/pathofbuilding-tests:latest | |
| steps: | |
| - name: Install git dependency | |
| run: apk add git | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Regenerate ModCache | |
| env: | |
| LUA_PATH: ../runtime/lua/?.lua;../runtime/lua/?/init.lua | |
| REGENERATE_MOD_CACHE: 1 | |
| run: cd src; luajit HeadlessWrapper.lua | |
| - run: git config --global --add safe.directory $(pwd) | |
| - name: Check if the generated ModCache is different | |
| run: git diff --exit-code src/Data/ModCache.lua |