@@ -45,14 +45,15 @@ jobs:
4545 preflight :
4646 runs-on : ubuntu-24.04
4747 container :
48- image : ghcr.io/jdx/mise :latest
48+ image : ghcr.io/ansible/ext-builder :latest
4949 env :
50+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5051 MISE_TRUSTED_CONFIG_PATHS : /
5152 continue-on-error : false
5253 outputs :
5354 commit_context : ${{ steps.extract_context.outputs.context }}
5455 steps :
55- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
56+ - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
5657 with :
5758 fetch-depth : 0 # we need tags for dynamic versioning
5859 show-progress : false
7071 mise exec -- printenv NODE_OPTIONS || true
7172 task setup
7273
74+ - name : Install ansible-dev-tools
75+ run : |
76+ pip install ansible-dev-tools
77+
7378 - name : Extract commit context from conventional commit
7479 id : extract_context
7580 shell : bash
@@ -103,18 +108,30 @@ jobs:
103108 task build
104109
105110 - name : Run context-specific command
106- if : steps.extract_context.outputs.context != '' && steps.extract_context.outputs.context != 'build'
111+ if : >-
112+ steps.extract_context.outputs.context != '' &&
113+ !contains(fromJSON('["build", "deps", "docs", "lint"]'), steps.extract_context.outputs.context)
107114 run : |
108- task ${{ steps.extract_context.outputs.context }}"
115+ task ${{ steps.extract_context.outputs.context }}
109116
110117 - name : task lint
111- timeout-minutes : 2 # expected under 1 minutes
118+ timeout-minutes : 4
112119 run : |
113120 task lint
114121
122+ - name : task docs
123+ timeout-minutes : 1
124+ run : |
125+ task docs
126+
127+ - name : task package
128+ timeout-minutes : 2
129+ run : |
130+ task package
131+
115132 build :
116133 name : ${{ matrix.name }}
117- needs : preflight
134+
118135 environment : ci
119136 env :
120137 SKIP_DOCKER : ${{ matrix.env.SKIP_DOCKER || 0 }}
@@ -144,23 +161,13 @@ jobs:
144161 os :
145162 - ubuntu-24.04
146163 task-name :
147- - docs
164+ - test (linux)
148165 name :
149- - docs
166+ - test (linux)
150167 include :
151- - name : lint
152- task-name : lint
153- os : ubuntu-24.04
154- env :
155- SKIP_PODMAN : 1
156- SKIP_DOCKER : 1
157-
158- - name : test (linux)
159- task-name : test
160-
161168 - name : test (macos)
162169 task-name : test
163- os : macos-13 -large
170+ os : macos-15 -large
164171 env :
165172 SKIP_PODMAN : 1
166173 SKIP_DOCKER : 1
@@ -176,7 +183,7 @@ jobs:
176183 SKIP_PODMAN : 1
177184 SKIP_DOCKER : 1
178185 steps :
179- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
186+ - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
180187 with :
181188 fetch-depth : 0 # we need tags for dynamic versioning
182189 show-progress : false
@@ -480,21 +487,21 @@ jobs:
480487
481488 steps :
482489 - name : Checkout Source # needed by codecov uploader
483- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
490+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
484491 with :
485492 fetch-depth : 0
486493
487494 - name : Merge logs into a single archive
488495 if : ${{ !failure() }}
489- uses : actions/upload-artifact/merge@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
496+ uses : actions/upload-artifact/merge@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
490497 with :
491498 name : logs.zip
492499 pattern : logs-*.zip
493500 separate-directories : true
494501 delete-merged : true
495502
496503 - name : Download artifacts
497- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 .0.0
504+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
498505 with :
499506 path : .
500507
@@ -590,7 +597,7 @@ jobs:
590597 run : |
591598 if [ -n "$SLACK_WEBHOOK_URL" ]; then
592599 curl -X POST -H 'Content-type: application/json' \
593- --data "{\"text\":\" Python tests failed in jobs: test for ' ${GITHUB_REPOSITORY}' (tox.yml). Check logs: ' ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}' \"}" \
600+ --data "{\"text\":\" Main branch tests failed on ` ${GITHUB_REPOSITORY}`. Check [ logs]( ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}) \"}" \
594601 $SLACK_WEBHOOK_URL
595602 fi
596603
@@ -602,7 +609,7 @@ jobs:
602609 - check
603610 steps :
604611 - name : Checkout Source
605- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
612+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
606613 with :
607614 fetch-depth : 0
608615
@@ -611,16 +618,16 @@ jobs:
611618 corepack enable
612619 npm config set fund false
613620
614- - uses : jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
621+ - uses : jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1
615622
616623 - name : Download the artifact
617- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 .0.0
624+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
618625 with :
619626 name : ansible-extension-build-${{ github.event.number || github.run_id }}.zip
620627
621628 - name : Attach vsix to Github release
622629 # cspell: ignore softprops
623- uses : softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 # v2.3.3
630+ uses : softprops/action-gh-release@5be0e66d93ac7ed76da52eca8bb058f665c3a5fe # v2.4.2
624631 if : github.ref_type == 'tag'
625632 with :
626633 files : " *.vsix"
@@ -650,11 +657,11 @@ jobs:
650657 - check
651658 steps :
652659 - name : Download the artifact
653- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 .0.0
660+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
654661 with :
655662 name : " @ansible-ansible-language-server-build-${{ github.event.number || github.run_id }}.tgz"
656663
657- - uses : jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
664+ - uses : jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1
658665
659666 - run : npm publish --access public @ansible-ansible-language-server-*.tgz
660667 env :
0 commit comments