diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f7596f0..59ef68f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,24 +26,21 @@ jobs: php: permissions: contents: read - uses: typisttech/.github/.github/workflows/lint-php.yml@fff1a4a3c5b3cf1f8618cf68600f0603a8c4236e # v9.5.0 + uses: typisttech/.github/.github/workflows/lint-php.yml@ce6e63ae544db5f5c5247f4310893a1a48958db9 with: phpstan: true mago: true - mago-version: '1.61' # # Must be kept in sync with @../../mise.toml box: true box-php-version: '8.5' - box-version: '4' go: permissions: security-events: write contents: read actions: read - uses: typisttech/.github/.github/workflows/lint-go.yml@fff1a4a3c5b3cf1f8618cf68600f0603a8c4236e # v9.5.0 + uses: typisttech/.github/.github/workflows/lint-go.yml@ce6e63ae544db5f5c5247f4310893a1a48958db9 with: golangci-lint: true - golangci-lint-version-file: .tool-versions wait-for-all-lint: if: cancelled() || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4c5b928..f50b850 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,6 @@ permissions: {} env: PHP_VERSION: '8.5' - BOX_VERSION: '4' SPC_VERSION: '2.8.5' jobs: @@ -76,13 +75,26 @@ jobs: files: coverage-unit.xml flags: unit + mise-ls: + permissions: + contents: read + uses: typisttech/.github/.github/workflows/mise-ls.yml@ce6e63ae544db5f5c5247f4310893a1a48958db9 + phar: + needs: + - mise-ls permissions: contents: read runs-on: ubuntu-26.04 outputs: phar-artifact-id: ${{ steps.upload-phar.outputs.artifact-id }} steps: + - name: Assert Box version is determined + if: ${{ fromJSON(needs.mise-ls.outputs.versions)['github:box-project/box'] == '' }} + run: | + echo "::error title=Unable to determine box version::Must be listed via 'mise ls --current'" + exit 1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false @@ -92,7 +104,7 @@ jobs: with: php-version: ${{ env.PHP_VERSION }} coverage: none - tools: "box:${{ env.BOX_VERSION }}" + tools: "box:${{ fromJSON(needs.mise-ls.outputs.versions)['github:box-project/box'] }}" - uses: typisttech/.github/.github/actions/composer-install@fff1a4a3c5b3cf1f8618cf68600f0603a8c4236e # v9.5.0 with: diff --git a/.tool-versions b/.tool-versions deleted file mode 100644 index d9ebec8..0000000 --- a/.tool-versions +++ /dev/null @@ -1 +0,0 @@ -golangci-lint 2.15 diff --git a/mise.toml b/mise.toml index ed518a8..1020f8f 100644 --- a/mise.toml +++ b/mise.toml @@ -2,7 +2,9 @@ GOFLAGS = '-mod=mod' [tools] -mago = "1.61" # Must be kept in sync with @.github/workflows/lint.yml +"github:box-project/box" = { version = "4.7", bin = "box", lazy_bins = "box", lazy = true } +golangci-lint = { version = "2.15", lazy = true } +mago = { version = "1.61", lazy = true } [tasks.phar] depends = ['vendor:no-dev']