fix: clarify macos release artifact names

This commit is contained in:
lucaronin
2026-04-26 14:29:47 +02:00
parent 8406042db1
commit 1136c1948e
5 changed files with 45 additions and 11 deletions

View File

@@ -1,3 +1,4 @@
import { readFileSync } from 'node:fs'
import {
buildStableDownloadRedirectPage,
extractStableDownloadTargets,
@@ -5,6 +6,35 @@ import {
resolveStableDownloadTargets,
} from './releaseDownloadPage'
describe('release workflow macOS artifact names', () => {
it('publishes versioned Silicon and Intel artifact names', () => {
const alphaWorkflow = readFileSync(`${process.cwd()}/.github/workflows/release.yml`, 'utf8')
const stableWorkflow = readFileSync(
`${process.cwd()}/.github/workflows/release-stable.yml`,
'utf8',
)
expect(alphaWorkflow).toContain(
'Tolaria_${{ needs.version.outputs.version }}_macOS_Silicon.app.tar.gz',
)
expect(alphaWorkflow).toContain(
'Tolaria_${{ needs.version.outputs.version }}_macOS_Intel.app.tar.gz',
)
expect(stableWorkflow).toContain(
'Tolaria_${{ needs.version.outputs.version }}_macOS_Silicon.app.tar.gz',
)
expect(stableWorkflow).toContain(
'Tolaria_${{ needs.version.outputs.version }}_macOS_Intel.app.tar.gz',
)
expect(stableWorkflow).toContain(
'Tolaria_${{ needs.version.outputs.version }}_macOS_Silicon.dmg',
)
expect(stableWorkflow).toContain(
'Tolaria_${{ needs.version.outputs.version }}_macOS_Intel.dmg',
)
})
})
describe('extractStableDownloadTargets', () => {
it('returns stable downloads for each supported desktop platform when present', () => {
expect(