test: move itg exclusions to jest
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@@ -81,19 +81,6 @@ jobs:
|
|||||||
- macos-13
|
- macos-13
|
||||||
- macos-latest
|
- macos-latest
|
||||||
- windows-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:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
@@ -109,7 +96,8 @@ jobs:
|
|||||||
run: yarn install
|
run: yarn install
|
||||||
-
|
-
|
||||||
name: Test
|
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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
-
|
-
|
||||||
|
|||||||
@@ -23,11 +23,13 @@ import {BakeDefinition} from '../../src/types/bake';
|
|||||||
|
|
||||||
const fixturesDir = path.join(__dirname, '..', 'fixtures');
|
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(() => {
|
beforeEach(() => {
|
||||||
jest.clearAllMocks();
|
jest.clearAllMocks();
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('parseDefinitions', () => {
|
maybe('parseDefinitions', () => {
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
test.each([
|
test.each([
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -19,7 +19,9 @@ import * as fs from 'fs';
|
|||||||
|
|
||||||
import {Install} from '../../src/buildx/install';
|
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
|
// prettier-ignore
|
||||||
test.each(['latest'])(
|
test.each(['latest'])(
|
||||||
'install docker %s', async (version) => {
|
'install docker %s', async (version) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user