mirror of
https://github.com/cita-777/metapi.git
synced 2026-10-31 19:47:31 +08:00
19 lines
789 B
TypeScript
19 lines
789 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
import { readFileSync } from 'node:fs';
|
|
import { resolve } from 'node:path';
|
|
|
|
describe('docker workflows', () => {
|
|
it('publishes armv7 docker images in ci and release workflows', () => {
|
|
const ciWorkflow = readFileSync(resolve(process.cwd(), '.github/workflows/ci.yml'), 'utf8');
|
|
const releaseWorkflow = readFileSync(resolve(process.cwd(), '.github/workflows/release.yml'), 'utf8');
|
|
|
|
expect(ciWorkflow).toContain('arch: armv7');
|
|
expect(ciWorkflow).toContain('platform: linux/arm/v7');
|
|
expect(ciWorkflow).toContain('"${tag}-armv7"');
|
|
|
|
expect(releaseWorkflow).toContain('arch: armv7');
|
|
expect(releaseWorkflow).toContain('platform: linux/arm/v7');
|
|
expect(releaseWorkflow).toContain('"${tag}-armv7"');
|
|
});
|
|
});
|