21
21
runs-on : ubuntu-latest
22
22
steps :
23
23
- name : Checkout
24
- uses : actions/checkout@v3
24
+ uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
25
25
with :
26
26
submodules : recursive
27
27
30
30
with :
31
31
github_token : ${{ secrets.GITHUB_TOKEN }}
32
32
33
- - uses : actions/setup-python@v1
33
+ - uses : actions/setup-python@0f07f7f756721ebd886c2462646a35f78a8bc4de # v1.2.4
34
34
- run : pip install cpplint
35
35
- run : cpplint --linelength=230 --filter=-legal/copyright,-whitespace/indent,-whitespace/comments,-whitespace/ending_newline,-build/include_order,-runtime/references,-readability/todo,-whitespace/blank_line,-whitespace/todo,-runtime/int,-build/c++11,-whitespace/parens --exclude=package/cpp/skia --exclude=package/apple --exclude=package/android/build --exclude=package/node_modules --recursive package
36
36
48
48
runs-on : ubuntu-latest
49
49
steps :
50
50
- name : Checkout
51
- uses : actions/checkout@v3
51
+ uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
52
52
with :
53
53
submodules : recursive
54
54
64
64
runs-on : ubuntu-latest
65
65
steps :
66
66
- name : Checkout
67
- uses : actions/checkout@v3
67
+ uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
68
68
with :
69
69
submodules : recursive
70
70
91
91
TURBO_CACHE_DIR : .turbo/android
92
92
steps :
93
93
- name : Checkout
94
- uses : actions/checkout@v3
94
+ uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
95
95
with :
96
96
submodules : recursive
97
97
@@ -101,21 +101,21 @@ jobs:
101
101
github_token : ${{ secrets.GITHUB_TOKEN }}
102
102
103
103
- name : Cache turborepo for Android
104
- uses : actions/cache@v3
104
+ uses : actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
105
105
with :
106
106
path : ${{ env.TURBO_CACHE_DIR }}
107
107
key : ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
108
108
restore-keys : |
109
109
${{ runner.os }}-turborepo-android
110
110
111
111
- name : Install JDK
112
- uses : actions/setup-java@v3
112
+ uses : actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1
113
113
with :
114
114
distribution : ' zulu'
115
115
java-version : ' 17'
116
116
117
117
- name : Install NDK
118
- uses : nttld/setup-ndk@v1
118
+ uses : nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410 # v1.5.0
119
119
id : setup-ndk
120
120
with :
121
121
ndk-version : r26d
@@ -132,7 +132,7 @@ jobs:
132
132
echo "sdk.dir=$ANDROID_HOME" > $GITHUB_WORKSPACE/apps/paper/android/local.properties
133
133
134
134
- name : Cache Gradle
135
- uses : actions/cache@v3
135
+ uses : actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
136
136
with :
137
137
path : |
138
138
~/.gradle/wrapper
@@ -153,7 +153,7 @@ jobs:
153
153
TURBO_CACHE_DIR : .turbo/android
154
154
steps :
155
155
- name : Checkout
156
- uses : actions/checkout@v3
156
+ uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
157
157
with :
158
158
submodules : recursive
159
159
@@ -163,21 +163,21 @@ jobs:
163
163
github_token : ${{ secrets.GITHUB_TOKEN }}
164
164
165
165
- name : Cache turborepo for Android
166
- uses : actions/cache@v3
166
+ uses : actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
167
167
with :
168
168
path : ${{ env.TURBO_CACHE_DIR }}
169
169
key : ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
170
170
restore-keys : |
171
171
${{ runner.os }}-turborepo-android
172
172
173
173
- name : Install JDK
174
- uses : actions/setup-java@v3
174
+ uses : actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1
175
175
with :
176
176
distribution : ' zulu'
177
177
java-version : ' 17'
178
178
179
179
- name : Install NDK
180
- uses : nttld/setup-ndk@v1
180
+ uses : nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410 # v1.5.0
181
181
id : setup-ndk
182
182
with :
183
183
ndk-version : r26d
@@ -195,7 +195,7 @@ jobs:
195
195
echo "sdk.dir=$ANDROID_HOME" > $GITHUB_WORKSPACE/apps/fabric/android/local.properties
196
196
197
197
- name : Cache Gradle
198
- uses : actions/cache@v3
198
+ uses : actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
199
199
with :
200
200
path : |
201
201
~/.gradle/wrapper
@@ -211,7 +211,7 @@ jobs:
211
211
yarn turbo run build:android --concurrency 1 --force
212
212
213
213
- name : Cache apk
214
- uses : actions/cache/save@v3
214
+ uses : actions/cache/save@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
215
215
env :
216
216
cache-name : cache-apk
217
217
with :
@@ -228,7 +228,7 @@ jobs:
228
228
working-directory : [apps/paper]
229
229
steps :
230
230
- name : checkout
231
- uses : actions/checkout@v3
231
+ uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
232
232
with :
233
233
submodules : recursive
234
234
@@ -239,7 +239,7 @@ jobs:
239
239
240
240
- name : Restore APK
241
241
id : cache-apk
242
- uses : actions/cache/restore@v3
242
+ uses : actions/cache/restore@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
243
243
with :
244
244
path : ${{ matrix.working-directory }}/android/app/build/outputs/apk/debug/app-debug.apk
245
245
key : apk-${{ github.sha }}
@@ -262,7 +262,7 @@ jobs:
262
262
run : E2E=true yarn start &
263
263
264
264
- name : Check APK existence
265
- uses : andstor/file-existence-action@v2
265
+ uses : andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2.0.0
266
266
with :
267
267
files : ${{ matrix.working-directory }}/android/app/build/outputs/apk/debug/app-debug.apk
268
268
fail : true
@@ -288,13 +288,13 @@ jobs:
288
288
CI=true yarn e2e --testPathIgnorePatterns Paragraphs
289
289
fi
290
290
291
- - uses : actions/upload-artifact@v4
291
+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
292
292
if : failure()
293
293
with :
294
294
path : packages/skia/src/__tests__/snapshots/
295
295
name : tests-snapshots-screenshots
296
296
297
- - uses : actions/upload-artifact@v4
297
+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
298
298
if : failure()
299
299
with :
300
300
path : apps/docs/static/
@@ -306,7 +306,7 @@ jobs:
306
306
TURBO_CACHE_DIR : .turbo/ios
307
307
steps :
308
308
- name : Checkout
309
- uses : actions/checkout@v3
309
+ uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
310
310
with :
311
311
submodules : recursive
312
312
@@ -316,7 +316,7 @@ jobs:
316
316
github_token : ${{ secrets.GITHUB_TOKEN }}
317
317
318
318
- name : Cache turborepo for iOS
319
- uses : actions/cache@v3
319
+ uses : actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
320
320
with :
321
321
path : ${{ env.TURBO_CACHE_DIR }}
322
322
key : ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
0 commit comments