File tree 5 files changed +41
-144
lines changed
5 files changed +41
-144
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 14
14
/gh-pages /*
15
15
/webpack.config.js
16
16
/build /*
17
+
18
+ /github-pages /*
Original file line number Diff line number Diff line change 1
1
name : build-scratch-blocks
2
2
on :
3
3
push :
4
+ permissions : write-all
5
+
4
6
jobs :
5
7
setup :
6
- runs-on : ubuntu-20.04
8
+ runs-on : ubuntu-latest
9
+ env :
10
+ JVM_OPTS : -Xmx3200m
11
+ DETECT_CHROMEDRIVER_VERSION : " true"
12
+ PROJECT_PATH : ./scratch-blocks
7
13
container :
8
14
image : python:2.7.18-buster
15
+ options : --user root
9
16
steps :
10
17
- uses : actions/checkout@v3
18
+ - name : Install Chrome Dependencies
19
+ run : |
20
+ apt-get update
21
+ apt-get install -y libgconf-2-4 libatk1.0-0 libatk-bridge2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0 libgbm-dev libnss3-dev libxss-dev libasound2
22
+ - name : Check Python version
23
+ run : python --version
24
+ - name : Setup Java
25
+ uses : actions/setup-java@v3
26
+ with :
27
+ distribution : ' temurin'
28
+ java-version : 17
11
29
- name : Setup Node
12
- uses : actions/setup-node@v2
30
+ uses : actions/setup-node@v3
13
31
with :
14
- node-version : 16
32
+ node-version-file : ' .nvmrc'
33
+ # - name: Setup Chrome
34
+ # uses: browser-actions/setup-chrome@v1
35
+ # with:
36
+ # chrome-version: latest
15
37
- name : Install Node Dependencies
16
- run : node -v
38
+ run : npm ci
39
+ - name : Lint
40
+ run : npm run test:lint
41
+ - name : Whats In Here
42
+ run : ls -la
43
+ - name : MSG
44
+ run : cd msg && ls -la
45
+ - name : Run Tests
46
+ run : npm test
Original file line number Diff line number Diff line change 17
17
"test:unit" : " node tests/jsunit/test_runner.js" ,
18
18
"test:lint" : " eslint ." ,
19
19
"test:messages" : " npm run translate && node i18n/test_scratch_msgs.js" ,
20
- "test" : " npm run test:lint && npm run test: messages && npm run test:unit" ,
20
+ "test" : " npm run test:messages && npm run test:unit" ,
21
21
"version" : " json -f package.json -I -e \" this.repository.sha = '$(git log -n1 --pretty=format:%H)'\" " ,
22
22
"translate" : " node i18n/js_to_json.js && node i18n/json_to_js.js" ,
23
23
"translate:sync:src" : " tx-push-src scratch-editor blocks msg/json/en.json" ,
48
48
"webpack" : " 4.47.0" ,
49
49
"webpack-cli" : " 3.3.12"
50
50
}
51
- }
51
+ }
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ var CopyWebpackPlugin = require('copy-webpack-plugin');
7
7
var path = require ( 'path' ) ;
8
8
var UglifyJsPlugin = require ( 'uglifyjs-webpack-plugin' ) ;
9
9
10
+
11
+
10
12
module . exports = [ {
11
13
mode : process . env . NODE_ENV === 'production' ? 'production' : 'development' ,
12
14
entry : {
@@ -53,7 +55,7 @@ module.exports = [{
53
55
entry : './shim/gh-pages.js' ,
54
56
output : {
55
57
filename : '[name].js' ,
56
- path : path . resolve ( __dirname , 'gh -pages' )
58
+ path : path . resolve ( __dirname , 'github -pages' ) //'/__w/scratch-blocks/scratch-blocks/github-pages'
57
59
} ,
58
60
optimization : {
59
61
minimize : false
You can’t perform that action at this time.
0 commit comments