diff --git a/.github/actions/configure-workflow/.eslintignore b/.github/actions/configure-workflow/.eslintignore index 42ceb9a5b..793f08136 100644 --- a/.github/actions/configure-workflow/.eslintignore +++ b/.github/actions/configure-workflow/.eslintignore @@ -2,3 +2,5 @@ dist/ lib/ node_modules/ jest.config.js +__tests__/ + diff --git a/.github/actions/configure-workflow/__tests__/main.test.ts b/.github/actions/configure-workflow/__tests__/main.test.ts index 98f44c5c9..f0d692099 100644 --- a/.github/actions/configure-workflow/__tests__/main.test.ts +++ b/.github/actions/configure-workflow/__tests__/main.test.ts @@ -1,8 +1,9 @@ -import {wait} from '../src/wait' -import * as process from 'process' import * as cp from 'child_process' import * as path from 'path' +import * as process from 'process' + import {expect, test} from '@jest/globals' +import {wait} from '../src/wait' test('throws invalid number', async () => { const input = parseInt('foo', 10) @@ -13,7 +14,7 @@ test('wait 500 ms', async () => { const start = new Date() await wait(500) const end = new Date() - var delta = Math.abs(end.getTime() - start.getTime()) + const delta = Math.abs(end.getTime() - start.getTime()) expect(delta).toBeGreaterThan(450) }) diff --git a/.github/actions/configure-workflow/package-lock.json b/.github/actions/configure-workflow/package-lock.json index 9cdef1da1..c7fcf9a43 100644 --- a/.github/actions/configure-workflow/package-lock.json +++ b/.github/actions/configure-workflow/package-lock.json @@ -6710,9 +6710,9 @@ } }, "node_modules/minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "dependencies": { "brace-expansion": "^1.1.7" @@ -13193,9 +13193,9 @@ "dev": true }, "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "requires": { "brace-expansion": "^1.1.7" diff --git a/.github/workflows/testing-workflow-config.yml b/.github/workflows/testing-workflow-config.yml new file mode 100644 index 000000000..74cd634aa --- /dev/null +++ b/.github/workflows/testing-workflow-config.yml @@ -0,0 +1,16 @@ +name: Testing workflow config action + +on: + workflow_dispatch: + +jobs: + testing-workflow-config: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: configure workflow + uses: ./.github/actions/configure-workflow + id: config + with: + milliseconds: 3000