Skip to content

Commit f46ed6d

Browse files
committed
update test environment
1 parent 5660d6b commit f46ed6d

4 files changed

Lines changed: 69 additions & 58 deletions

File tree

.github/workflows/test.yml

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -3,58 +3,58 @@ name: Package Tests
33
on: [push, pull_request]
44

55
jobs:
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

package-lock.json

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/gatsby-components/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@
2727
"url": "https://github.com/wq/material/issues"
2828
},
2929
"homepage": "https://material.wq.io/@wq/gatsby-components",
30-
"devDependencies": {}
30+
"dependencies": {
31+
"@wq/material-web": "^3.0.0-alpha.0"
32+
}
3133
}

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
},
3030
"homepage": "https://material.wq.io/@wq/react",
3131
"dependencies": {
32-
"change-case": "^4.1.2"
32+
"change-case": "^5.4.4"
3333
}
3434
}

0 commit comments

Comments
 (0)