artes 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -6,12 +6,12 @@ Given("User sets random word as {string} variable", async (key) => {
|
|
|
6
6
|
context.vars[key] = word;
|
|
7
7
|
});
|
|
8
8
|
|
|
9
|
-
Given("User sets random word that has {int} character as {string} variable", async (
|
|
9
|
+
Given("User sets random word that has {int} character as {string} variable", async (count, key) => {
|
|
10
10
|
const word = random.lorem.word(count);
|
|
11
11
|
context.vars[key] = word;
|
|
12
12
|
});
|
|
13
13
|
|
|
14
|
-
Given("User sets random word that has character between {int} and {int} as {string} variable", async (
|
|
14
|
+
Given("User sets random word that has character between {int} and {int} as {string} variable", async (from, to, key) => {
|
|
15
15
|
const word = random.lorem.word({length: { min: from, max: to }});
|
|
16
16
|
context.vars[key] = word;
|
|
17
17
|
});
|
|
@@ -21,12 +21,12 @@ Given("User sets random words as {string} variable", async (key) => {
|
|
|
21
21
|
context.vars[key] = words;
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
Given("User sets random {int} words as {string} variable", async (
|
|
24
|
+
Given("User sets random {int} words as {string} variable", async (count, key) => {
|
|
25
25
|
const words = random.lorem.words({ wordCount: count });
|
|
26
26
|
context.vars[key] = words;
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
Given("User sets random words that range between {int} and {int} as {string} variable", async (
|
|
29
|
+
Given("User sets random words that range between {int} and {int} as {string} variable", async (from, to, key) => {
|
|
30
30
|
const words = random.lorem.words({ min: from, max: to });
|
|
31
31
|
context.vars[key] = words;
|
|
32
32
|
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
name: Node.js Package
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [created]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
build:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
outputs:
|
|
11
|
-
node-modules-cache: ${{ steps.cache-node-modules.outputs.cache-hit }}
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v4
|
|
14
|
-
- uses: actions/setup-node@v4
|
|
15
|
-
with:
|
|
16
|
-
node-version: 20
|
|
17
|
-
- run: npm ci
|
|
18
|
-
- run: npm test
|
|
19
|
-
|
|
20
|
-
publish-npm:
|
|
21
|
-
needs: build
|
|
22
|
-
runs-on: ubuntu-latest
|
|
23
|
-
steps:
|
|
24
|
-
- uses: actions/checkout@v4
|
|
25
|
-
- uses: actions/setup-node@v4
|
|
26
|
-
with:
|
|
27
|
-
node-version: 20
|
|
28
|
-
registry-url: https://registry.npmjs.org/
|
|
29
|
-
- run: npm ci
|
|
30
|
-
- run: npm publish
|
|
31
|
-
env:
|
|
32
|
-
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
|