cache-extensions 1.1.2 → 1.7.1
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/LICENSE +21 -21
- package/README.md +154 -133
- package/lib/cache.d.ts +2 -0
- package/lib/cache.js +59 -0
- package/lib/cache.js.map +1 -0
- package/lib/utils.d.ts +3 -0
- package/lib/utils.js +44 -0
- package/lib/utils.js.map +1 -0
- package/package.json +66 -54
- package/src/cache.ts +44 -11
- package/src/lists/bionic-libs +768 -737
- package/src/lists/darwin-deps +1 -0
- package/src/lists/darwin-extensions +19 -0
- package/src/lists/focal-libs +788 -753
- package/src/lists/linux-deps +4 -0
- package/src/scripts/cache.sh +124 -0
- package/src/scripts/darwin.sh +189 -0
- package/src/scripts/linux.sh +117 -0
- package/src/utils.ts +30 -23
- package/.eslintrc.json +0 -23
- package/.github/CODE_OF_CONDUCT.md +0 -76
- package/.github/CONTRIBUTING.md +0 -63
- package/.github/FUNDING.yml +0 -5
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -42
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -26
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -37
- package/.github/workflows/workflow.yml +0 -31
- package/.idea/cache-extensions.iml +0 -8
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -217
- package/.prettierrc.json +0 -12
- package/__tests__/cache.test.ts +0 -60
- package/__tests__/utils.test.ts +0 -25
- package/action.yml +0 -19
- package/dist/index.js +0 -1701
- package/jest.config.js +0 -12
- package/src/extensions.sh +0 -96
- package/src/lists/bionic-php5.3-extensions +0 -71
- package/src/lists/bionic-php5.4-extensions +0 -75
- package/src/lists/bionic-php5.5-extensions +0 -75
- package/src/lists/bionic-php5.6-extensions +0 -67
- package/src/lists/bionic-php7.0-extensions +0 -64
- package/src/lists/bionic-php7.1-extensions +0 -93
- package/src/lists/bionic-php7.2-extensions +0 -93
- package/src/lists/bionic-php7.3-extensions +0 -93
- package/src/lists/bionic-php7.4-extensions +0 -91
- package/src/lists/bionic-php8.0-extensions +0 -72
- package/src/lists/focal-php5.3-extensions +0 -67
- package/src/lists/focal-php5.4-extensions +0 -74
- package/src/lists/focal-php5.5-extensions +0 -74
- package/src/lists/focal-php5.6-extensions +0 -66
- package/src/lists/focal-php7.0-extensions +0 -63
- package/src/lists/focal-php7.1-extensions +0 -63
- package/src/lists/focal-php7.2-extensions +0 -64
- package/src/lists/focal-php7.3-extensions +0 -64
- package/src/lists/focal-php7.4-extensions +0 -92
- package/src/lists/focal-php8.0-extensions +0 -71
- package/src/lists/xenial-libs +0 -728
- package/src/lists/xenial-php5.3-extensions +0 -70
- package/src/lists/xenial-php5.4-extensions +0 -74
- package/src/lists/xenial-php5.5-extensions +0 -74
- package/src/lists/xenial-php5.6-extensions +0 -98
- package/src/lists/xenial-php7.0-extensions +0 -93
- package/src/lists/xenial-php7.1-extensions +0 -93
- package/src/lists/xenial-php7.2-extensions +0 -93
- package/src/lists/xenial-php7.3-extensions +0 -93
- package/src/lists/xenial-php7.4-extensions +0 -91
- package/src/lists/xenial-php8.0-extensions +0 -72
- package/tsconfig.json +0 -63
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Nice, you found a bug!
|
|
4
|
-
title: ''
|
|
5
|
-
labels: 'bug'
|
|
6
|
-
assignees: 'shivammathur'
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Describe the bug**
|
|
11
|
-
<!-- Please describe the bug concisely. -->
|
|
12
|
-
|
|
13
|
-
**Version**
|
|
14
|
-
- [ ] I have checked releases and the bug exists in the latest patch version of `v1`.
|
|
15
|
-
- [ ] `v2`
|
|
16
|
-
- [ ] `v1`
|
|
17
|
-
|
|
18
|
-
**Runners**
|
|
19
|
-
<!-- Please mark the GitHub Action runner your workflow uses. -->
|
|
20
|
-
- [ ] GitHub Hosted
|
|
21
|
-
- [ ] Self Hosted
|
|
22
|
-
|
|
23
|
-
**Operating systems**
|
|
24
|
-
<!-- Please mention the operating systems your workflow uses. -->
|
|
25
|
-
|
|
26
|
-
**PHP versions**
|
|
27
|
-
<!-- Please mention the PHP versions your workflow uses. -->
|
|
28
|
-
|
|
29
|
-
**To Reproduce**
|
|
30
|
-
<!-- Please provide the relevant steps of your workflow `.yml` file. -->
|
|
31
|
-
|
|
32
|
-
**Expected behavior**
|
|
33
|
-
<!-- A clear and concise description of what you expected to happen. -->
|
|
34
|
-
|
|
35
|
-
**Screenshots/Logs**
|
|
36
|
-
<!-- If applicable, add screenshots or logs to help explain your problem. -->
|
|
37
|
-
|
|
38
|
-
**Additional context**
|
|
39
|
-
<!-- Add any other context about the problem here. -->
|
|
40
|
-
|
|
41
|
-
**Are you willing to submit a PR?**
|
|
42
|
-
<!-- We accept pull requests targeting the develop branch. -->
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature request
|
|
3
|
-
about: Suggest a new feature
|
|
4
|
-
title: ''
|
|
5
|
-
labels: 'enhancement'
|
|
6
|
-
assignees: 'shivammathur'
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Describe the feature**
|
|
11
|
-
<!-- Please describe concisely the feature you want to add. -->
|
|
12
|
-
|
|
13
|
-
**Version**
|
|
14
|
-
- [ ] I have checked releases and the feature is missing in the latest patch version of `v1`.
|
|
15
|
-
|
|
16
|
-
**Underlying issue**
|
|
17
|
-
<!-- Please describe the issue this would solve. -->
|
|
18
|
-
|
|
19
|
-
**Describe alternatives**
|
|
20
|
-
<!-- Please mention any alternative solutions you've considered. -->
|
|
21
|
-
|
|
22
|
-
**Additional context**
|
|
23
|
-
<!-- Add any other context or screenshots about the feature request here. -->
|
|
24
|
-
|
|
25
|
-
**Are you willing to submit a PR?**
|
|
26
|
-
<!-- We accept pull requests targeting the develop branch. -->
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: 🐞 Bug Fix, ⚙ Improvement or 🎉 New Feature
|
|
3
|
-
about: You found a bug, want to improve something or add a new feature
|
|
4
|
-
labels: bug or enhancement
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## A Pull Request should be associated with an Issue.
|
|
9
|
-
|
|
10
|
-
> If you're fixing a bug, adding a new feature or improving something please provide the details in Issues,
|
|
11
|
-
> so that the development can be pointed in the intended direction.
|
|
12
|
-
|
|
13
|
-
Related issue: <!-- Please link the related issue -->
|
|
14
|
-
|
|
15
|
-
> Further notes in [Contribution Guidelines](.github/CONTRIBUTING.md)
|
|
16
|
-
> Thank you for your contribution.
|
|
17
|
-
|
|
18
|
-
### Description
|
|
19
|
-
|
|
20
|
-
This PR [briefly explain what it does]
|
|
21
|
-
|
|
22
|
-
> In case this PR introduced TypeScript/JavaScript code changes:
|
|
23
|
-
|
|
24
|
-
- [ ] I have written test cases for the changes in this pull request
|
|
25
|
-
- [ ] I have run `npm run format` before the commit.
|
|
26
|
-
- [ ] I have run `npm run lint` before the commit.
|
|
27
|
-
- [ ] I have run `npm run release` before the commit.
|
|
28
|
-
- [ ] `npm test` returns with no unit test errors and all code covered.
|
|
29
|
-
|
|
30
|
-
> In case this PR edits any scripts:
|
|
31
|
-
|
|
32
|
-
- [ ] I have checked the edited scripts for syntax.
|
|
33
|
-
- [ ] I have tested the changes in an integration test (If yes, provide workflow link).
|
|
34
|
-
|
|
35
|
-
<!--
|
|
36
|
-
- Please target the develop branch when submitting the pull request.
|
|
37
|
-
-->
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
name: Main workflow
|
|
2
|
-
on: [push, pull_request]
|
|
3
|
-
jobs:
|
|
4
|
-
run:
|
|
5
|
-
name: Run
|
|
6
|
-
runs-on: ubuntu-latest
|
|
7
|
-
steps:
|
|
8
|
-
- name: Checkout
|
|
9
|
-
uses: actions/checkout@v2
|
|
10
|
-
|
|
11
|
-
- name: Setup Node.js 12.x
|
|
12
|
-
uses: actions/setup-node@v1
|
|
13
|
-
with:
|
|
14
|
-
node-version: 12.x
|
|
15
|
-
|
|
16
|
-
- name: Install dependencies
|
|
17
|
-
run: npm install
|
|
18
|
-
|
|
19
|
-
- name: Prettier Format Check
|
|
20
|
-
run: npm run format-check
|
|
21
|
-
|
|
22
|
-
- name: ESLint Check
|
|
23
|
-
run: npm run lint
|
|
24
|
-
|
|
25
|
-
- name: Run tests
|
|
26
|
-
run: npm test
|
|
27
|
-
|
|
28
|
-
- name: Send Coverage
|
|
29
|
-
continue-on-error: true
|
|
30
|
-
timeout-minutes: 1
|
|
31
|
-
run: curl -s https://codecov.io/bash | bash -s -- -t ${{secrets.CODECOV_TOKEN}} -f coverage/clover.xml -n github-actions-codecov-${{ matrix.operating-system }}-php${{ matrix.php-versions }}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
|
5
|
-
<orderEntry type="inheritedJdk" />
|
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
</component>
|
|
8
|
-
</module>
|
package/.idea/misc.xml
DELETED
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/../.idea/cache-extensions.iml" filepath="$PROJECT_DIR$/../.idea/cache-extensions.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/vcs.xml
DELETED
package/.idea/workspace.xml
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ChangeListManager">
|
|
4
|
-
<list default="true" id="2a00d973-3313-4736-8f4d-f5f735c6d46d" name="Default Changelist" comment="" />
|
|
5
|
-
<option name="SHOW_DIALOG" value="false" />
|
|
6
|
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
7
|
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
8
|
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
9
|
-
</component>
|
|
10
|
-
<component name="ComposerSettings">
|
|
11
|
-
<execution>
|
|
12
|
-
<executable />
|
|
13
|
-
</execution>
|
|
14
|
-
</component>
|
|
15
|
-
<component name="DatabaseView">
|
|
16
|
-
<option name="SHOW_INTERMEDIATE" value="true" />
|
|
17
|
-
<option name="GROUP_DATA_SOURCES" value="true" />
|
|
18
|
-
<option name="GROUP_SCHEMA" value="true" />
|
|
19
|
-
<option name="GROUP_CONTENTS" value="false" />
|
|
20
|
-
<option name="SORT_POSITIONED" value="false" />
|
|
21
|
-
<option name="SHOW_EMPTY_GROUPS" value="false" />
|
|
22
|
-
<option name="AUTO_SCROLL_FROM_SOURCE" value="false" />
|
|
23
|
-
<option name="HIDDEN_KINDS">
|
|
24
|
-
<set />
|
|
25
|
-
</option>
|
|
26
|
-
<expand />
|
|
27
|
-
<select />
|
|
28
|
-
</component>
|
|
29
|
-
<component name="FavoritesManager">
|
|
30
|
-
<favorites_list name="setup-php" />
|
|
31
|
-
</component>
|
|
32
|
-
<component name="FileTemplateManagerImpl">
|
|
33
|
-
<option name="RECENT_TEMPLATES">
|
|
34
|
-
<list>
|
|
35
|
-
<option value="PowerShell File" />
|
|
36
|
-
<option value="TypeScript File" />
|
|
37
|
-
</list>
|
|
38
|
-
</option>
|
|
39
|
-
</component>
|
|
40
|
-
<component name="Git.Settings">
|
|
41
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
|
|
42
|
-
</component>
|
|
43
|
-
<component name="ProjectId" id="1R5SGS2dQGjsxzKedwZKhFSnnCm" />
|
|
44
|
-
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
|
45
|
-
<component name="ProjectViewState">
|
|
46
|
-
<option name="hideEmptyMiddlePackages" value="true" />
|
|
47
|
-
<option name="showExcludedFiles" value="true" />
|
|
48
|
-
<option name="showLibraryContents" value="true" />
|
|
49
|
-
</component>
|
|
50
|
-
<component name="PropertiesComponent">
|
|
51
|
-
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
52
|
-
<property name="last.edited.regexp" value="Sample Text" />
|
|
53
|
-
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
54
|
-
<property name="node.js.detected.package.eslint" value="true" />
|
|
55
|
-
<property name="node.js.detected.package.standard" value="true" />
|
|
56
|
-
<property name="node.js.path.for.package.eslint" value="project" />
|
|
57
|
-
<property name="node.js.path.for.package.standard" value="project" />
|
|
58
|
-
<property name="node.js.selected.package.eslint" value="(autodetect)" />
|
|
59
|
-
<property name="node.js.selected.package.standard" value="" />
|
|
60
|
-
<property name="nodejs_package_manager_path" value="npm" />
|
|
61
|
-
<property name="settings.editor.selected.configurable" value="reference.settingsdialog.IDE.editor.colors" />
|
|
62
|
-
<property name="ts.external.directory.path" value="E:\python\cache-extensions\node_modules\typescript\lib" />
|
|
63
|
-
</component>
|
|
64
|
-
<component name="RecentsManager">
|
|
65
|
-
<key name="MoveFile.RECENT_KEYS">
|
|
66
|
-
<recent name="E:\python\setup-php\src\configs" />
|
|
67
|
-
<recent name="E:\python\setup-php\src\scripts" />
|
|
68
|
-
</key>
|
|
69
|
-
</component>
|
|
70
|
-
<component name="RunManager">
|
|
71
|
-
<configuration name="index.html" type="JavascriptDebugType" temporary="true" nameIsGenerated="true" uri="http://localhost:63342/setup-php/coverage/lcov-report/index.html" useBuiltInWebServerPort="true">
|
|
72
|
-
<method v="2" />
|
|
73
|
-
</configuration>
|
|
74
|
-
<recent_temporary>
|
|
75
|
-
<list>
|
|
76
|
-
<item itemvalue="JavaScript Debug.index.html" />
|
|
77
|
-
</list>
|
|
78
|
-
</recent_temporary>
|
|
79
|
-
</component>
|
|
80
|
-
<component name="SvnConfiguration">
|
|
81
|
-
<configuration />
|
|
82
|
-
</component>
|
|
83
|
-
<component name="TaskManager">
|
|
84
|
-
<task active="true" id="Default" summary="Default task">
|
|
85
|
-
<changelist id="2a00d973-3313-4736-8f4d-f5f735c6d46d" name="Default Changelist" comment="" />
|
|
86
|
-
<created>1568955371733</created>
|
|
87
|
-
<option name="number" value="Default" />
|
|
88
|
-
<option name="presentableId" value="Default" />
|
|
89
|
-
<updated>1568955371733</updated>
|
|
90
|
-
<workItem from="1568955379089" duration="32032000" />
|
|
91
|
-
<workItem from="1569426447361" duration="121080000" />
|
|
92
|
-
<workItem from="1569680970411" duration="11094000" />
|
|
93
|
-
<workItem from="1569847962929" duration="31281000" />
|
|
94
|
-
<workItem from="1570056438485" duration="22116000" />
|
|
95
|
-
<workItem from="1570115111221" duration="22939000" />
|
|
96
|
-
<workItem from="1570237814574" duration="4754000" />
|
|
97
|
-
<workItem from="1570274170982" duration="8764000" />
|
|
98
|
-
<workItem from="1570436877190" duration="30520000" />
|
|
99
|
-
<workItem from="1570529406737" duration="9570000" />
|
|
100
|
-
<workItem from="1570669964985" duration="14695000" />
|
|
101
|
-
<workItem from="1570721404907" duration="63295000" />
|
|
102
|
-
<workItem from="1571011081785" duration="3841000" />
|
|
103
|
-
<workItem from="1571057964580" duration="65185000" />
|
|
104
|
-
<workItem from="1571460692533" duration="5637000" />
|
|
105
|
-
<workItem from="1571539334808" duration="798000" />
|
|
106
|
-
<workItem from="1571690125225" duration="4619000" />
|
|
107
|
-
<workItem from="1571759387433" duration="7515000" />
|
|
108
|
-
<workItem from="1571945177374" duration="7522000" />
|
|
109
|
-
<workItem from="1572123989278" duration="2231000" />
|
|
110
|
-
<workItem from="1572131539294" duration="1968000" />
|
|
111
|
-
<workItem from="1572367027227" duration="2016000" />
|
|
112
|
-
<workItem from="1572376770299" duration="19733000" />
|
|
113
|
-
<workItem from="1572696453860" duration="10003000" />
|
|
114
|
-
<workItem from="1572751941925" duration="4388000" />
|
|
115
|
-
<workItem from="1572896923675" duration="9081000" />
|
|
116
|
-
<workItem from="1573069186931" duration="18481000" />
|
|
117
|
-
<workItem from="1573208223744" duration="1119000" />
|
|
118
|
-
<workItem from="1573605674267" duration="2754000" />
|
|
119
|
-
<workItem from="1573773404824" duration="2778000" />
|
|
120
|
-
<workItem from="1573827876203" duration="3033000" />
|
|
121
|
-
<workItem from="1574362927703" duration="4922000" />
|
|
122
|
-
<workItem from="1574508492722" duration="21398000" />
|
|
123
|
-
<workItem from="1574697467394" duration="2508000" />
|
|
124
|
-
<workItem from="1574810674549" duration="5347000" />
|
|
125
|
-
<workItem from="1574866479619" duration="7178000" />
|
|
126
|
-
<workItem from="1574897547952" duration="11467000" />
|
|
127
|
-
<workItem from="1575002516348" duration="4608000" />
|
|
128
|
-
<workItem from="1575063150674" duration="33303000" />
|
|
129
|
-
<workItem from="1575338695470" duration="46000" />
|
|
130
|
-
<workItem from="1575491752105" duration="676000" />
|
|
131
|
-
<workItem from="1575855731772" duration="28135000" />
|
|
132
|
-
<workItem from="1576104288628" duration="2398000" />
|
|
133
|
-
<workItem from="1576287631451" duration="14633000" />
|
|
134
|
-
<workItem from="1576504226600" duration="191000" />
|
|
135
|
-
<workItem from="1576504678912" duration="2053000" />
|
|
136
|
-
<workItem from="1576671479680" duration="18003000" />
|
|
137
|
-
<workItem from="1576708766621" duration="28167000" />
|
|
138
|
-
<workItem from="1576899115904" duration="15010000" />
|
|
139
|
-
<workItem from="1577035279437" duration="116874000" />
|
|
140
|
-
<workItem from="1577559329133" duration="1073000" />
|
|
141
|
-
<workItem from="1577743518433" duration="16185000" />
|
|
142
|
-
<workItem from="1578019941911" duration="340000" />
|
|
143
|
-
<workItem from="1578123724218" duration="35011000" />
|
|
144
|
-
<workItem from="1578407094799" duration="26393000" />
|
|
145
|
-
<workItem from="1578446648250" duration="22307000" />
|
|
146
|
-
<workItem from="1578616619367" duration="2693000" />
|
|
147
|
-
<workItem from="1578861116765" duration="14702000" />
|
|
148
|
-
<workItem from="1579073276098" duration="205000" />
|
|
149
|
-
<workItem from="1579144663863" duration="19054000" />
|
|
150
|
-
<workItem from="1579530609496" duration="39918000" />
|
|
151
|
-
<workItem from="1579783923289" duration="4426000" />
|
|
152
|
-
<workItem from="1579959303722" duration="34291000" />
|
|
153
|
-
<workItem from="1580135671501" duration="6251000" />
|
|
154
|
-
<workItem from="1580269676183" duration="7703000" />
|
|
155
|
-
<workItem from="1580325136359" duration="3189000" />
|
|
156
|
-
<workItem from="1580454840492" duration="14360000" />
|
|
157
|
-
<workItem from="1580569467603" duration="585000" />
|
|
158
|
-
<workItem from="1580571031285" duration="42260000" />
|
|
159
|
-
<workItem from="1580789073790" duration="6996000" />
|
|
160
|
-
<workItem from="1580911353502" duration="25829000" />
|
|
161
|
-
<workItem from="1581200056031" duration="29568000" />
|
|
162
|
-
<workItem from="1581330838173" duration="2485000" />
|
|
163
|
-
<workItem from="1581445911381" duration="20338000" />
|
|
164
|
-
<workItem from="1581562861445" duration="6963000" />
|
|
165
|
-
<workItem from="1581667541386" duration="3333000" />
|
|
166
|
-
<workItem from="1581954093199" duration="2494000" />
|
|
167
|
-
<workItem from="1582431949124" duration="773000" />
|
|
168
|
-
<workItem from="1582453540289" duration="249000" />
|
|
169
|
-
<workItem from="1582456169006" duration="2604000" />
|
|
170
|
-
<workItem from="1582600193563" duration="2825000" />
|
|
171
|
-
<workItem from="1582970509035" duration="2610000" />
|
|
172
|
-
<workItem from="1583336009925" duration="24176000" />
|
|
173
|
-
<workItem from="1583415683738" duration="14181000" />
|
|
174
|
-
<workItem from="1583632313661" duration="2067000" />
|
|
175
|
-
<workItem from="1584515901531" duration="2179000" />
|
|
176
|
-
<workItem from="1586457193845" duration="2092000" />
|
|
177
|
-
<workItem from="1589096273522" duration="3949000" />
|
|
178
|
-
<workItem from="1591177963718" duration="3115000" />
|
|
179
|
-
<workItem from="1592531808151" duration="4769000" />
|
|
180
|
-
<workItem from="1594167735053" duration="2061000" />
|
|
181
|
-
<workItem from="1595089828530" duration="918000" />
|
|
182
|
-
<workItem from="1596499351027" duration="1997000" />
|
|
183
|
-
<workItem from="1597037614410" duration="3348000" />
|
|
184
|
-
<workItem from="1601440358471" duration="586000" />
|
|
185
|
-
</task>
|
|
186
|
-
<servers />
|
|
187
|
-
</component>
|
|
188
|
-
<component name="TypeScriptGeneratedFilesManager">
|
|
189
|
-
<option name="version" value="1" />
|
|
190
|
-
</component>
|
|
191
|
-
<component name="UnknownFeatures">
|
|
192
|
-
<option featureType="com.intellij.fileTypeFactory" implementationName="*.yml" />
|
|
193
|
-
</component>
|
|
194
|
-
<component name="Vcs.Log.Tabs.Properties">
|
|
195
|
-
<option name="TAB_STATES">
|
|
196
|
-
<map>
|
|
197
|
-
<entry key="MAIN">
|
|
198
|
-
<value>
|
|
199
|
-
<State>
|
|
200
|
-
<option name="COLUMN_ORDER" />
|
|
201
|
-
</State>
|
|
202
|
-
</value>
|
|
203
|
-
</entry>
|
|
204
|
-
</map>
|
|
205
|
-
</option>
|
|
206
|
-
</component>
|
|
207
|
-
<component name="WindowStateProjectService">
|
|
208
|
-
<state x="361" y="71" key="#ESLint" timestamp="1589098653994">
|
|
209
|
-
<screen x="0" y="0" width="1536" height="824" />
|
|
210
|
-
</state>
|
|
211
|
-
<state x="361" y="71" key="#ESLint/0.0.1536.824@0.0.1536.824" timestamp="1589098653994" />
|
|
212
|
-
<state x="399" y="109" width="738" height="606" key="find.popup" timestamp="1597042148733">
|
|
213
|
-
<screen x="0" y="0" width="1536" height="824" />
|
|
214
|
-
</state>
|
|
215
|
-
<state x="399" y="109" width="738" height="606" key="find.popup/0.0.1536.824@0.0.1536.824" timestamp="1597042148733" />
|
|
216
|
-
</component>
|
|
217
|
-
</project>
|
package/.prettierrc.json
DELETED
package/__tests__/cache.test.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as cache from '../src/cache';
|
|
2
|
-
import * as utils from '../src/utils';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Mock cache.ts
|
|
6
|
-
*/
|
|
7
|
-
jest.mock('../src/cache', () => ({
|
|
8
|
-
run: jest.fn().mockImplementation(
|
|
9
|
-
async (): Promise<string> => {
|
|
10
|
-
let version: string = process.env['php-version'] || '';
|
|
11
|
-
version = version.length > 1 ? version.slice(0, 3) : version + '.0';
|
|
12
|
-
const extensions = await utils.filterExtensions(
|
|
13
|
-
process.env['extensions'] || ''
|
|
14
|
-
);
|
|
15
|
-
const key: string = process.env['key'] || '';
|
|
16
|
-
const script_path = 'extensions.sh';
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
'bash ' + script_path + ' "' + extensions + '" ' + key + ' ' + version
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
)
|
|
23
|
-
}));
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Function to set the process.env
|
|
27
|
-
*
|
|
28
|
-
* @param version
|
|
29
|
-
* @param extensions
|
|
30
|
-
* @param key
|
|
31
|
-
*/
|
|
32
|
-
function setEnv(
|
|
33
|
-
version: string | number,
|
|
34
|
-
extensions: string,
|
|
35
|
-
key: string
|
|
36
|
-
): void {
|
|
37
|
-
process.env['php-version'] = version.toString();
|
|
38
|
-
process.env['extensions'] = extensions;
|
|
39
|
-
process.env['key'] = key;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
describe('Install', () => {
|
|
43
|
-
it('Test Run', async () => {
|
|
44
|
-
setEnv('7.0', 'xdebug, pcov', 'cache-v1');
|
|
45
|
-
const script: string = '' + (await cache.run());
|
|
46
|
-
expect(script).toContain('bash extensions.sh "xdebug, pcov" cache-v1 7.0');
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
it('Test Run', async () => {
|
|
50
|
-
setEnv('7.4', 'xdebug, zip', 'cache-v2');
|
|
51
|
-
const script: string = '' + (await cache.run());
|
|
52
|
-
expect(script).toContain('bash extensions.sh "xdebug, zip" cache-v2 7.4');
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
it('Test Run', async () => {
|
|
56
|
-
setEnv('7.4', 'xdebug, :zip', 'cache-v2');
|
|
57
|
-
const script: string = '' + (await cache.run());
|
|
58
|
-
expect(script).toContain('bash extensions.sh "xdebug" cache-v2 7.4');
|
|
59
|
-
});
|
|
60
|
-
});
|
package/__tests__/utils.test.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as utils from '../src/utils';
|
|
2
|
-
|
|
3
|
-
jest.mock('@actions/core', () => ({
|
|
4
|
-
getInput: jest.fn().mockImplementation(key => {
|
|
5
|
-
return ['cache-extensions'].indexOf(key) !== -1 ? key : '';
|
|
6
|
-
})
|
|
7
|
-
}));
|
|
8
|
-
|
|
9
|
-
describe('Utils tests', () => {
|
|
10
|
-
it('checking getInput', async () => {
|
|
11
|
-
process.env['test'] = 'cache-extensions';
|
|
12
|
-
process.env['undefined'] = '';
|
|
13
|
-
expect(await utils.getInput('test', false)).toBe('cache-extensions');
|
|
14
|
-
expect(await utils.getInput('undefined', false)).toBe('');
|
|
15
|
-
expect(await utils.getInput('cache-extensions', false)).toBe(
|
|
16
|
-
'cache-extensions'
|
|
17
|
-
);
|
|
18
|
-
expect(await utils.getInput('DoesNotExist', false)).toBe('');
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
it('checking filterExtensions', async () => {
|
|
22
|
-
expect(await utils.filterExtensions('a,:b,c')).toBe('a,c');
|
|
23
|
-
expect(await utils.filterExtensions('a, :b, c')).toBe('a, c');
|
|
24
|
-
});
|
|
25
|
-
});
|
package/action.yml
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: 'Cache PHP Extensions'
|
|
2
|
-
author: shivammathur
|
|
3
|
-
description: 'Cache PHP Extensions in GitHub Actions'
|
|
4
|
-
branding:
|
|
5
|
-
color: 'purple'
|
|
6
|
-
icon: 'box'
|
|
7
|
-
inputs:
|
|
8
|
-
php-version:
|
|
9
|
-
description: 'PHP version you are setting up.'
|
|
10
|
-
required: true
|
|
11
|
-
extensions:
|
|
12
|
-
description: 'Extensions you want to cache.'
|
|
13
|
-
required: true
|
|
14
|
-
key:
|
|
15
|
-
description: 'Key to version the cache hash.'
|
|
16
|
-
required: true
|
|
17
|
-
runs:
|
|
18
|
-
using: 'node12'
|
|
19
|
-
main: 'dist/index.js'
|