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
2 changes: 1 addition & 1 deletion .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
node-version:
description: 'The version of Node.js to use'
required: false
default: '22'
default: 'current'

runs:
using: composite
Expand Down
24 changes: 20 additions & 4 deletions .github/workflows/integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,28 @@ jobs:
name: vscode-zipfs
path: ./packages/vscode-zipfs/vscode-zipfs-*.vsix

node-versions:
name: 'Acceptance test node versions'
outputs:
versions: ${{ steps.versions.outputs.versions }}
runs-on: ubuntu-latest
steps:
- id: versions
shell: bash
run: >
echo -n 'versions='
>> $GITHUB_OUTPUT

curl https://nodejs.org/dist/index.json |
jq -c '[.[0:1] + map(select(.lts)) | .[].version | capture("^v(?<major>\\d+)") | .major | tonumber] | unique | map(select(. >= 18))'
>> $GITHUB_OUTPUT

acceptance:
strategy:
fail-fast: false
matrix:
# We run the ubuntu tests on multiple Node versions with 2 shards since they're the fastest.
node: [18, 19, 20, 21, 22]
node: ${{ fromJson(needs.node-versions.outputs.versions) }}
platform: [[ubuntu, 22.04]]
shard: ['1/2', '2/2']
include:
Expand All @@ -239,7 +255,7 @@ jobs:

name: '${{matrix.platform[0]}}-latest w/ Node.js ${{matrix.node}}.x (${{matrix.shard}})'
runs-on: ${{matrix.platform[0]}}-${{matrix.platform[1]}}
needs: build
needs: [build, node-versions]

# Permission required to produce a valid provenance statement during the tests
# Only run inside the main repository; this may fail in master since it doesn't run in PRs from forks
Expand All @@ -249,10 +265,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: 'Use Node.js ${{matrix.node}}.x'
- name: 'Use Node.js ${{matrix.node}}'
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}.x
node-version: ${{matrix.node}}

- uses: actions/download-artifact@v4
with:
Expand Down
Loading