File tree Expand file tree Collapse file tree 3 files changed +45
-1
lines changed
Expand file tree Collapse file tree 3 files changed +45
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Web CI
2+ on : [push, pull_request]
3+ permissions :
4+ contents : read
5+ jobs :
6+ build :
7+ name : Check
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Install glue
11+ # Patch Glue to let it run on modern OS
12+ run : |
13+ sudo apt install -y glue-sprite && \
14+ sudo ln -s glue-sprite /usr/bin/glue && \
15+ sudo sed -i -e 's/PILImage\.ANTIALIAS/PILImage.LANCZOS/' /usr/lib/python3/dist-packages/glue/formats/img.py && \
16+ sudo sed -i -e 's/re\.compile(/re.compile(r/' /usr/lib/python3/dist-packages/glue/core.py && \
17+ sudo sed -i -e 's/PImage\.VERSION/PImage.__version__/' /usr/lib/python3/dist-packages/glue/bin.py
18+ - uses : actions/checkout@v4
19+ - name : Validate composer.json and composer.lock
20+ run : composer validate --strict
21+ - name : Setup
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : ${{ matrix.node-version }}
25+ - name : Cache Composer packages
26+ id : packages-cache
27+ uses : actions/cache@v4
28+ with :
29+ path : " vendor\n node_modules\n dumper-companion/node_modules"
30+ key : ${{ runner.os }}-phpjs-${{ hashFiles('**/composer.lock', '**/package-lock.json') }}
31+ restore-keys : |
32+ ${{ runner.os }}-phpjs-
33+ - name : Install dependencies
34+ run : composer install --prefer-dist --no-progress
35+ - name : Run CI checks
36+ run : composer run-script ci
Original file line number Diff line number Diff line change 4949 " @build-common" ,
5050 " npm install"
5151 ],
52+ "ci" : [
53+ " composer install" ,
54+ " @build-common" ,
55+ " @lint" ,
56+ " npm ci" ,
57+ " npm run lint"
58+ ],
5259 "start" : [
5360 " Composer\\ Config::disableProcessTimeout" ,
5461 " php -S localhost:8000 -t ./public_html ./public_html/index.php"
Original file line number Diff line number Diff line change 99 },
1010 "scripts" : {
1111 "postinstall" : " (cd dumper-companion && npm ci --omit=dev && npm run build) && node build.js" ,
12- "scss:watch" : " sass --watch ./scss:./public_html/css"
12+ "scss:watch" : " sass --watch ./scss:./public_html/css" ,
13+ "lint" : " (cd dumper-companion && npm ci && npm run lint)"
1314 }
1415}
You can’t perform that action at this time.
0 commit comments