1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-22 21:15:09 +00:00

chore(configure-workflow): add workflow to test configure-workflow action

This commit is contained in:
Eric Vantillard 2023-04-03 18:10:31 +02:00
parent cd8b1a2012
commit a66258f1de
4 changed files with 28 additions and 9 deletions

View File

@ -2,3 +2,5 @@ dist/
lib/ lib/
node_modules/ node_modules/
jest.config.js jest.config.js
__tests__/

View File

@ -1,8 +1,9 @@
import {wait} from '../src/wait'
import * as process from 'process'
import * as cp from 'child_process' import * as cp from 'child_process'
import * as path from 'path' import * as path from 'path'
import * as process from 'process'
import {expect, test} from '@jest/globals' import {expect, test} from '@jest/globals'
import {wait} from '../src/wait'
test('throws invalid number', async () => { test('throws invalid number', async () => {
const input = parseInt('foo', 10) const input = parseInt('foo', 10)
@ -13,7 +14,7 @@ test('wait 500 ms', async () => {
const start = new Date() const start = new Date()
await wait(500) await wait(500)
const end = new Date() const end = new Date()
var delta = Math.abs(end.getTime() - start.getTime()) const delta = Math.abs(end.getTime() - start.getTime())
expect(delta).toBeGreaterThan(450) expect(delta).toBeGreaterThan(450)
}) })

View File

@ -6710,9 +6710,9 @@
} }
}, },
"node_modules/minimatch": { "node_modules/minimatch": {
"version": "3.0.4", "version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
@ -13193,9 +13193,9 @@
"dev": true "dev": true
}, },
"minimatch": { "minimatch": {
"version": "3.0.4", "version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
"dev": true, "dev": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"

View File

@ -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