test: move itg exclusions to jest

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2024-02-05 09:18:16 +01:00
parent 49a22f7a3e
commit bf4bc3c036
3 changed files with 8 additions and 16 deletions

View File

@@ -81,19 +81,6 @@ jobs:
- macos-13
- macos-latest
- windows-latest
exclude:
- os: macos-13
test: buildx/bake.test.itg.ts
- os: macos-latest
test: buildx/bake.test.itg.ts
- os: windows-latest
test: buildx/bake.test.itg.ts
- os: macos-13
test: buildx/install.test.itg.ts
- os: macos-latest
test: buildx/install.test.itg.ts
- os: windows-latest
test: buildx/install.test.itg.ts
steps:
-
name: Checkout
@@ -109,7 +96,8 @@ jobs:
run: yarn install
-
name: Test
run: yarn test:itg-coverage --runTestsByPath __tests__/${{ matrix.test }} --coverageDirectory=./coverage
run: |
yarn test:itg-coverage --runTestsByPath __tests__/${{ matrix.test }} --coverageDirectory=./coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-

View File

@@ -23,11 +23,13 @@ import {BakeDefinition} from '../../src/types/bake';
const fixturesDir = path.join(__dirname, '..', 'fixtures');
const maybe = !process.env.GITHUB_ACTIONS || (process.env.GITHUB_ACTIONS === 'true' && process.env.imageOS && process.env.imageOS.startsWith('ubuntu')) ? describe : describe.skip;
beforeEach(() => {
jest.clearAllMocks();
});
describe('parseDefinitions', () => {
maybe('parseDefinitions', () => {
// prettier-ignore
test.each([
[

View File

@@ -19,7 +19,9 @@ import * as fs from 'fs';
import {Install} from '../../src/buildx/install';
describe('download', () => {
const maybe = !process.env.GITHUB_ACTIONS || (process.env.GITHUB_ACTIONS === 'true' && process.env.imageOS && process.env.imageOS.startsWith('ubuntu')) ? describe : describe.skip;
maybe('download', () => {
// prettier-ignore
test.each(['latest'])(
'install docker %s', async (version) => {