Skip to content
Snippets Groups Projects
Unverified Commit a73942ca authored by Gabriel-Ladzaretti's avatar Gabriel-Ladzaretti Committed by GitHub
Browse files

fix(circleci): add android to machine image skipping (#15792)

parent c6e8fd19
Branches
Tags
No related merge requests found
import { loadFixture } from '../../../../test/util';
import { Fixtures } from '../../../../test/fixtures';
import { extractPackageFile } from './extract';
const file1 = loadFixture('config.yml');
const file2 = loadFixture('config2.yml');
const file3 = loadFixture('config3.yml');
const file1 = Fixtures.get('config.yml');
const file2 = Fixtures.get('config2.yml');
const file3 = Fixtures.get('config3.yml');
describe('modules/manager/circleci/extract', () => {
describe('extractPackageFile()', () => {
......@@ -53,5 +53,16 @@ describe('modules/manager/circleci/extract', () => {
{ currentValue: '14.8.0', depName: 'cimg/node' },
]);
});
it('extracts and exclude android images', () => {
expect(
extractPackageFile(
'jobs:\n' +
' build:\n' +
' machine:\n' +
' image: android:202102-01'
)
).toBeNull();
});
});
});
......@@ -63,7 +63,9 @@ export function extractPackageFile(content: string): PackageFile | null {
dep.versioning = 'docker';
if (
!dep.depName?.startsWith('ubuntu-') &&
!dep.depName?.startsWith('windows-server-')
!dep.depName?.startsWith('windows-server-') &&
!dep.depName?.startsWith('android-') &&
dep.depName !== 'android'
) {
deps.push(dep);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment