This repository was archived by the owner on Jun 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 92
92
apt-get install -y libxml2-dev graphviz
93
93
- name : Build and Test
94
94
run : swift test -c release --enable-test-discovery
95
+
96
+ validate-assets :
97
+ runs-on : ubuntu-latest
98
+
99
+ name : " Validate Assets"
100
+
101
+ steps :
102
+ - name : Checkout
103
+ uses : actions/checkout@v1
104
+ - name : Setup node.js
105
+ uses : actions/setup-node@v1
106
+ with :
107
+ node-version : 14.x
108
+ - uses : actions/cache@v2
109
+ with :
110
+ path : ~/.npm
111
+ key : ${{ runner.os }}-node-${{ hashFiles('.node/**/package-lock.json') }}
112
+ restore-keys : |
113
+ ${{ runner.os }}-node-
114
+ - name : Install node dependencies
115
+ run : |
116
+ cd .node
117
+ npm install
118
+ - name : Test assets
119
+ run : |
120
+ cd .node
121
+ OLD=`cksum ../Resources/all.min.css`
122
+ npm run build
123
+ NEW=`cksum ../Resources/all.min.css`
124
+ if [[ "$OLD" != "$NEW" ]]; then
125
+ echo "Regenerated assets differ from committed version"
126
+ exit -1
127
+ fi
Original file line number Diff line number Diff line change 5
5
" not dead"
6
6
],
7
7
"scripts" : {
8
- "watch" : " postcss -w ../Assets/**/*.css -o ../Resources/all.min.css --config ./postcss.config.js"
8
+ "watch" : " postcss -w ../Assets/**/*.css -o ../Resources/all.min.css --config ./postcss.config.js" ,
9
+ "build" : " postcss ../Assets/**/*.css -o ../Resources/all.min.css --config ./postcss.config.js"
9
10
},
10
11
"dependencies" : {
11
12
"cssnano" : " ^4.1.10" ,
You can’t perform that action at this time.
0 commit comments