@@ -3,58 +3,58 @@ name: Package Tests
33on : [push, pull_request]
44
55jobs :
6- npm :
7- name : " @wq/${{ matrix.package }}"
8- runs-on : ubuntu-20.04
9- env :
10- PACKAGE : ${{ matrix.package }}
11- strategy :
12- fail-fast : false
13- matrix :
14- python-version : ["3.10 "]
15- node-version : [18 ]
16- package :
17- - react
18- - material
19- - material-web
20- - material-native
21- steps :
22- - uses : actions/checkout@v2
23- with :
24- fetch-depth : 0
25- - name : Set up Node ${{ matrix.node-version }}
26- uses : actions/setup-node@v2
27- with :
28- node-version : ${{ matrix.node-version }}
29- - name : Set up Python ${{ matrix.python-version }}
30- uses : actions/setup-python@v2
31- with :
32- python-version : ${{ matrix.python-version }}
33- - name : Install dependencies
34- run : npm ci && npm run build
35- - name : Install native dependencies
36- if : matrix.package == 'material-native' || matrix.package == 'map-gl-native'
37- run : cd packages/$PACKAGE && npm ci
38- - name : Lint with ESLint
39- run : npm run lint
40- - name : Start test server
41- run : python -m tests.server &
42- - name : Test with Jest
43- run : |
44- cd packages/$PACKAGE
45- npm run test
46- - uses : smartsquaregmbh/delete-old-packages@v0.4.0
47- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
48- with :
49- keep : 5
50- names : ${{ matrix.package }}
51- - name : Publish to Github Packages
52- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
53- run : |
54- python -m pip install setuptools_scm
55- ./set_dev_version.sh
56- echo "registry=https://npm.pkg.github.com/wq" > .npmrc
57- echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
58- cp .npmrc packages/$PACKAGE/.npmrc # for native builds
59- cd packages/$PACKAGE
60- npm publish
6+ npm :
7+ name : " @wq/${{ matrix.package }}"
8+ runs-on : ubuntu-latest
9+ env :
10+ PACKAGE : ${{ matrix.package }}
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ python-version : ["3.14 "]
15+ node-version : [24 ]
16+ package :
17+ - react
18+ - material
19+ - material-web
20+ - material-native
21+ steps :
22+ - uses : actions/checkout@v6
23+ with :
24+ fetch-depth : 0
25+ - name : Set up Node ${{ matrix.node-version }}
26+ uses : actions/setup-node@v6
27+ with :
28+ node-version : ${{ matrix.node-version }}
29+ - name : Set up Python ${{ matrix.python-version }}
30+ uses : actions/setup-python@v6
31+ with :
32+ python-version : ${{ matrix.python-version }}
33+ - name : Install dependencies
34+ run : npm ci && npm run build
35+ - name : Install native dependencies
36+ if : matrix.package == 'material-native' || matrix.package == 'map-gl-native'
37+ run : cd packages/$PACKAGE && npm ci
38+ - name : Lint with ESLint
39+ run : npm run lint
40+ - name : Start test server
41+ run : python -m tests.server &
42+ - name : Test with Jest
43+ run : |
44+ cd packages/$PACKAGE
45+ npm run test
46+ - uses : smartsquaregmbh/delete-old-packages@v0.8.1
47+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
48+ with :
49+ keep : 5
50+ names : ${{ matrix.package }}
51+ - name : Publish to Github Packages
52+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
53+ run : |
54+ python -m pip install setuptools_scm
55+ ./set_dev_version.sh
56+ echo "registry=https://npm.pkg.github.com/wq" > .npmrc
57+ echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
58+ cp .npmrc packages/$PACKAGE/.npmrc # for native builds
59+ cd packages/$PACKAGE
60+ npm publish
0 commit comments