Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,21 @@
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')
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

env:
PHP_VERSION: '8.5'
BOX_VERSION: '4'
SPC_VERSION: '2.8.5'

jobs:
Expand Down Expand Up @@ -76,13 +75,26 @@
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
Expand All @@ -92,7 +104,7 @@
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:
Expand Down
1 change: 0 additions & 1 deletion .tool-versions

This file was deleted.

4 changes: 3 additions & 1 deletion mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down