@capgo/cli 4.10.2 → 4.10.6-beta.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.
@@ -18,7 +18,7 @@ jobs:
18
18
  with:
19
19
  fetch-depth: 0
20
20
  - name: Setup bun
21
- uses: oven-sh/setup-bun@v1.1.1
21
+ uses: oven-sh/setup-bun@v1.2.2
22
22
  with:
23
23
  bun-version: latest
24
24
  - name: Install dependencies
@@ -33,14 +33,14 @@ jobs:
33
33
  - name: Run
34
34
  id: run_cli
35
35
  run: node dist/index.js --help
36
- - uses: JS-DevTools/npm-publish@v3
37
- if: ${{ !contains(github.ref, '-alpha.') }}
38
- with:
39
- token: ${{ secrets.NPM_TOKEN }}
40
- provenance: true
41
- - uses: JS-DevTools/npm-publish@v3
42
- if: ${{ contains(github.ref, '-alpha.') }}
43
- with:
44
- token: ${{ secrets.NPM_TOKEN }}
45
- tag: next
46
- provenance: true
36
+ # - uses: JS-DevTools/npm-publish@v3
37
+ # if: ${{ !contains(github.ref, '-alpha.') }}
38
+ # with:
39
+ # token: ${{ secrets.NPM_TOKEN }}
40
+ # provenance: true
41
+ # - uses: JS-DevTools/npm-publish@v3
42
+ # if: ${{ contains(github.ref, '-alpha.') }}
43
+ # with:
44
+ # token: ${{ secrets.NPM_TOKEN }}
45
+ # tag: next
46
+ # provenance: true
@@ -18,7 +18,7 @@ jobs:
18
18
  fetch-depth: 0
19
19
  token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
20
20
  - name: Setup bun
21
- uses: oven-sh/setup-bun@v1.1.1
21
+ uses: oven-sh/setup-bun@v1.2.2
22
22
  with:
23
23
  bun-version: latest
24
24
  - name: Install dependencies
@@ -48,7 +48,7 @@ jobs:
48
48
  - name: Checkout
49
49
  uses: actions/checkout@v4
50
50
  - name: Setup bun
51
- uses: oven-sh/setup-bun@v1.1.1
51
+ uses: oven-sh/setup-bun@v1.2.2
52
52
  with:
53
53
  bun-version: latest
54
54
  - name: Install dependencies
@@ -0,0 +1,222 @@
1
+ name: Check POSIX Paths in Zip File
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ jobs:
12
+ create-valid-zip-linux:
13
+ if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - name: Checkout repository
18
+ uses: actions/checkout@v4
19
+
20
+ - name: Setup bun
21
+ uses: oven-sh/setup-bun@v1.2.2
22
+ with:
23
+ bun-version: latest
24
+
25
+ - name: Install dependencies
26
+ id: install_code
27
+ run: bun install --frozen-lockfile
28
+
29
+ - name: Build code
30
+ id: build_code
31
+ run: bun run build
32
+
33
+ - name: Create a valid zip test
34
+ id: create_zip
35
+ run: node ./dist/index.js bundle zip --path test/test_upload -n build-linux.zip
36
+
37
+ - name: Check build directory contents
38
+ run: |
39
+ echo "Listing contents of the build directory..."
40
+ ls -R ./dist
41
+
42
+ - name: Check ZIP file contents
43
+ run: |
44
+ echo "Listing contents of the ZIP file..."
45
+ unzip -l build-linux.zip
46
+
47
+ - name: Upload build-linux.zip artifact
48
+ uses: actions/upload-artifact@v4
49
+ with:
50
+ name: build-zip-linux
51
+ path: build-linux.zip
52
+
53
+ check-posix-paths-windows:
54
+ runs-on: ${{ matrix.os }}
55
+ if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
56
+
57
+ strategy:
58
+ matrix:
59
+ os: [windows-2019, windows-2022]
60
+
61
+ steps:
62
+ - name: Checkout repository
63
+ uses: actions/checkout@v4
64
+
65
+ - name: Setup bun
66
+ uses: oven-sh/setup-bun@v1.2.2
67
+ with:
68
+ bun-version: latest
69
+
70
+ - name: Install dependencies
71
+ id: install_code
72
+ run: bun install --frozen-lockfile
73
+
74
+ - name: Build code
75
+ id: build_code
76
+ run: bun run build
77
+
78
+ - name: Create a zip test
79
+ id: create_zip
80
+ run: node ./dist/index.js bundle zip --path test/test_upload -n build-${{ matrix.os }}.zip
81
+
82
+ - name: Upload build.zip artifact
83
+ uses: actions/upload-artifact@v4
84
+ with:
85
+ name: build-zip-${{ matrix.os }}
86
+ path: build-${{ matrix.os }}.zip
87
+
88
+ check-posix-paths-unix:
89
+ runs-on: ubuntu-latest
90
+ needs: [create-valid-zip-linux, check-posix-paths-windows]
91
+
92
+ steps:
93
+ - name: Checkout repository
94
+ uses: actions/checkout@v4
95
+
96
+ - name: Download build-linux.zip artifact
97
+ uses: actions/download-artifact@v4
98
+ with:
99
+ name: build-zip-linux
100
+
101
+ - name: List the files
102
+ run: ls -lh
103
+
104
+ - name: Check file size of Linux build
105
+ run: ls -lh build-linux.zip
106
+
107
+ - name: Verify ZIP file integrity for Linux build with zipinfo
108
+ run: |
109
+ echo "Verifying ZIP file integrity for Linux build with zipinfo..."
110
+ zipinfo ./build-linux.zip || (echo "ZIP file is corrupted: build-linux.zip" && exit 1)
111
+
112
+ - name: Verify POSIX paths for Linux build
113
+ run: |
114
+ unzip build-linux.zip -d extracted-linux
115
+ if find extracted-linux -type f | grep -qE '\\\\'; then
116
+ echo "Non-POSIX paths detected in build-linux.zip."
117
+ exit 1
118
+ else
119
+ echo "All paths are POSIX compliant in build-linux.zip."
120
+ fi
121
+
122
+ - name: Setup Java
123
+ uses: actions/setup-java@v4
124
+ with:
125
+ distribution: 'zulu'
126
+ java-version: '17'
127
+
128
+ - name: Compile VerifyZip.java
129
+ run: javac ./test/VerifyZip.java
130
+
131
+ - name: Verify ZIP file integrity for Linux build with Java
132
+ run: java -cp ./test VerifyZip build-linux.zip
133
+
134
+ - name: Download build-windows-2019.zip artifact
135
+ uses: actions/download-artifact@v4
136
+ with:
137
+ name: build-zip-windows-2019
138
+
139
+ - name: Download build-windows-2022.zip artifact
140
+ uses: actions/download-artifact@v4
141
+ with:
142
+ name: build-zip-windows-2022
143
+
144
+ - name: List the files
145
+ run: ls -lh
146
+
147
+ - name: Check file sizes of Windows builds
148
+ run: |
149
+ echo "Checking file sizes..."
150
+ ls -lh build-windows-2019.zip
151
+ ls -lh build-windows-2022.zip
152
+
153
+ - name: Verify ZIP file integrity for Windows 2019 build with zipinfo
154
+ run: |
155
+ echo "Verifying ZIP file integrity for Windows 2019 build with zipinfo..."
156
+ zipinfo ./build-windows-2019.zip || (echo "ZIP file is corrupted: build-windows-2019.zip" && exit 1)
157
+
158
+ - name: Verify ZIP file integrity for Windows 2022 build with zipinfo
159
+ run: |
160
+ echo "Verifying ZIP file integrity for Windows 2022 build with zipinfo..."
161
+ zipinfo ./build-windows-2022.zip || (echo "ZIP file is corrupted: build-windows-2022.zip" && exit 1)
162
+
163
+ - name: Verify POSIX paths for Windows 2019 build
164
+ run: |
165
+ unzip build-windows-2019.zip -d extracted-2019
166
+ if find extracted-2019 -type f | grep -qE '\\\\'; then
167
+ echo "Non-POSIX paths detected in build-windows-2019.zip."
168
+ exit 1
169
+ else
170
+ echo "All paths are POSIX compliant in build-windows-2019.zip."
171
+ fi
172
+
173
+ - name: Verify POSIX paths for Windows 2022 build
174
+ run: |
175
+ unzip build-windows-2022.zip -d extracted-2022
176
+ if find extracted-2022 -type f | grep -qE '\\\\'; then
177
+ echo "Non-POSIX paths detected in build-windows-2022.zip."
178
+ exit 1
179
+ else
180
+ echo "All paths are POSIX compliant in build-windows-2022.zip."
181
+ fi
182
+
183
+ - name: Verify ZIP file integrity for Windows 2019 build with Java
184
+ run: java -cp ./test VerifyZip build-windows-2019.zip
185
+
186
+ - name: Verify ZIP file integrity for Windows 2022 build with Java
187
+ run: java -cp ./test VerifyZip build-windows-2022.zip
188
+
189
+ - name: Setup Swift
190
+ uses: swift-actions/setup-swift@v2
191
+ with:
192
+ swift-version: '5.9.2'
193
+
194
+ - name: Install CocoaPods
195
+ run: |
196
+ export GEM_HOME=$HOME/.gem
197
+ export PATH=$GEM_HOME/bin:$PATH
198
+ gem install cocoapods
199
+
200
+ - name: Create Podfile
201
+ run: |
202
+ echo "platform :ios, '12.0'" > Podfile
203
+ echo "target 'VerifyZip' do" >> Podfile
204
+ echo " use_frameworks!" >> Podfile
205
+ echo " pod 'SSZipArchive'" >> Podfile
206
+ echo "end" >> Podfile
207
+
208
+ - name: Install dependencies
209
+ run: |
210
+ export GEM_HOME=$HOME/.gem
211
+ export PATH=$GEM_HOME/bin:$PATH
212
+ pod install
213
+
214
+
215
+ - name: Verify ZIP file integrity for Linux build with Swift
216
+ run: swift run VerifyZip build-linux.zip
217
+
218
+ - name: Verify ZIP file integrity for Windows 2019 build with Swift
219
+ run: swift run VerifyZip build-windows-2019.zip
220
+
221
+ - name: Verify ZIP file integrity for Windows 2022 build with Swift
222
+ run: swift run VerifyZip build-windows-2022.zip
@@ -13,7 +13,7 @@ jobs:
13
13
  - name: Check out
14
14
  uses: actions/checkout@v4
15
15
  - name: Setup bun
16
- uses: oven-sh/setup-bun@v1.1.1
16
+ uses: oven-sh/setup-bun@v1.2.2
17
17
  with:
18
18
  bun-version: latest
19
19
  - name: Install dependencies