@suffolklitlab/alkiln 4.0.0-pre-api.2 → 4.0.0-pre-api.3
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/CHANGELOG.md +1 -0
- package/action.yml +30 -24
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -48,6 +48,7 @@ Format:
|
|
|
48
48
|
- Step to log the page's JSON variables and values in the report. Future goal: save to file. See #454.
|
|
49
49
|
- Step to log into the developer's docassemble server account using GitHub SECRETs. See #499.
|
|
50
50
|
- Create log.txt for report items and uploaded as github artifact so there's always some kind of output.
|
|
51
|
+
- Add control of alkiln npm version to the action.yml
|
|
51
52
|
|
|
52
53
|
### Changed
|
|
53
54
|
- Update to v13 of puppeteer
|
package/action.yml
CHANGED
|
@@ -21,33 +21,17 @@ inputs:
|
|
|
21
21
|
description: 'Other languages you want to test. This should be in your GitHub SECRETS or the SECRETS of your org.'
|
|
22
22
|
required: false
|
|
23
23
|
default: ''
|
|
24
|
+
# This is necessary to test pre-releases at the very least. It does seem
|
|
25
|
+
# strange considering we're controlling everything through the action, but
|
|
26
|
+
# that actually doesn't touch the npm version that's pulled in.
|
|
27
|
+
ALKILN_VERSION:
|
|
28
|
+
description: 'Version of ALKiln to get from npm.'
|
|
29
|
+
required: false
|
|
30
|
+
default: '^4.0.0'
|
|
24
31
|
|
|
25
32
|
runs:
|
|
26
33
|
using: "composite"
|
|
27
34
|
steps:
|
|
28
|
-
# This doesn't use an already established package-lock.json and that
|
|
29
|
-
# comes with some types of test breaking risks. Same problem as before.
|
|
30
|
-
- name: Overwrite or create package.json
|
|
31
|
-
run: |
|
|
32
|
-
cat << EOF > "package.json"
|
|
33
|
-
{
|
|
34
|
-
"scripts": {
|
|
35
|
-
"test": "npm run langs_setup && npm run cucumber -- $@",
|
|
36
|
-
"cucumber_base": "./node_modules/.bin/cucumber-js --require ./node_modules/.bin/alkiln-cucumber",
|
|
37
|
-
"cucumber": "run_cucumber(){ npm run cucumber_base -- \"$@\" docassemble/*/data/sources/*.feature; }; run_cucumber",
|
|
38
|
-
"langs": "npm run langs_setup && ./node_modules/.bin/cucumber-js --require ./node_modules/.bin/alkiln-cucumber docassemble/*/data/sources/*_lang*.feature",
|
|
39
|
-
"langs_setup": "node_modules/.bin/alkiln-langs 'docassemble/*/data/sources/*.feature'",
|
|
40
|
-
"setup": "node_modules/.bin/alkiln-setup",
|
|
41
|
-
"takedown": "node_modules/.bin/alkiln-takedown"
|
|
42
|
-
},
|
|
43
|
-
"dependencies": {
|
|
44
|
-
"colors": "1.4.0",
|
|
45
|
-
"@cucumber/cucumber": "^7.3.2",
|
|
46
|
-
"@suffolklitlab/alkiln": "^4.0.0"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
shell: bash
|
|
50
|
-
|
|
51
35
|
# Install node
|
|
52
36
|
- name: "ALKiln: Install node packages"
|
|
53
37
|
uses: actions/setup-node@v1
|
|
@@ -55,7 +39,7 @@ runs:
|
|
|
55
39
|
node-version: "17"
|
|
56
40
|
- run: npm install
|
|
57
41
|
shell: bash
|
|
58
|
-
|
|
42
|
+
|
|
59
43
|
# Set environment variables
|
|
60
44
|
- name: "ALKiln: Set environment variables"
|
|
61
45
|
# If extra languages were set manually, override the repository
|
|
@@ -77,6 +61,28 @@ runs:
|
|
|
77
61
|
echo "PLAYGROUND_ID=${{ inputs.PLAYGROUND_ID }}" >> $GITHUB_ENV
|
|
78
62
|
echo "DOCASSEMBLE_DEVELOPER_API_KEY=${{ inputs.DOCASSEMBLE_DEVELOPER_API_KEY }}" >> $GITHUB_ENV
|
|
79
63
|
shell: bash
|
|
64
|
+
# This doesn't use an already established package-lock.json and that
|
|
65
|
+
# comes with some types of test breaking risks. Same problem as before.
|
|
66
|
+
- name: Overwrite or create package.json
|
|
67
|
+
run: |
|
|
68
|
+
cat << EOF > "package.json"
|
|
69
|
+
{
|
|
70
|
+
"scripts": {
|
|
71
|
+
"test": "npm run langs_setup && npm run cucumber -- $@",
|
|
72
|
+
"cucumber_base": "./node_modules/.bin/cucumber-js --require ./node_modules/.bin/alkiln-cucumber",
|
|
73
|
+
"cucumber": "run_cucumber(){ npm run cucumber_base -- \"$@\" docassemble/*/data/sources/*.feature; }; run_cucumber",
|
|
74
|
+
"langs": "npm run langs_setup && ./node_modules/.bin/cucumber-js --require ./node_modules/.bin/alkiln-cucumber docassemble/*/data/sources/*_lang*.feature",
|
|
75
|
+
"langs_setup": "node_modules/.bin/alkiln-langs 'docassemble/*/data/sources/*.feature'",
|
|
76
|
+
"setup": "node_modules/.bin/alkiln-setup",
|
|
77
|
+
"takedown": "node_modules/.bin/alkiln-takedown"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"colors": "1.4.0",
|
|
81
|
+
"@cucumber/cucumber": "^7.3.2",
|
|
82
|
+
"@suffolklitlab/alkiln": "$ALKILN_VERSION"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
shell: bash
|
|
80
86
|
- name: "ALKiln: confirm info"
|
|
81
87
|
run: echo -e "\nRepo is $REPO_URL\nBranch ref is $BRANCH_PATH\nManually added languages are $EXTRA_LANGUAGES\nAll other data is secret\n"
|
|
82
88
|
shell: bash
|
package/package.json
CHANGED