88
99env :
1010 WEAVIATE_124 : 1.24.26
11- WEAVIATE_125 : 1.25.25
12- WEAVIATE_126 : 1.26.10
13- WEAVIATE_127 : 1.27.3
11+ WEAVIATE_125 : 1.25.30
12+ WEAVIATE_126 : 1.26.14
13+ WEAVIATE_127 : 1.27.11
14+ WEAVIATE_128 : 1.28.4
15+ WEAVIATE_129 : 1.29.0
1416
1517jobs :
1618 checks :
2729 npm run format:check
2830 npm run docs
2931
30- tests :
32+ tests-without-auth :
3133 needs : checks
3234 runs-on : ubuntu-latest
3335 strategy :
3739 { node: "22.x", weaviate: $WEAVIATE_124},
3840 { node: "22.x", weaviate: $WEAVIATE_125},
3941 { node: "22.x", weaviate: $WEAVIATE_126},
40- { node: "18.x", weaviate: $WEAVIATE_127},
41- { node: "20.x", weaviate: $WEAVIATE_127},
42- { node: "22.x", weaviate: $WEAVIATE_127}
42+ { node: "22.x", weaviate: $WEAVIATE_127},
43+ { node: "22.x", weaviate: $WEAVIATE_128},
44+ { node: "18.x", weaviate: $WEAVIATE_129},
45+ { node: "20.x", weaviate: $WEAVIATE_129},
46+ { node: "22.x", weaviate: $WEAVIATE_129}
47+ ]
48+ steps :
49+ - uses : actions/checkout@v3
50+ - uses : actions/setup-node@v3
51+ with :
52+ node-version : ${{ matrix.versions.node }}
53+ - name : Login to Docker Hub
54+ if : ${{ !github.event.pull_request.head.repo.fork && github.triggering_actor != 'dependabot[bot]' }}
55+ uses : docker/login-action@v3
56+ with :
57+ username : ${{secrets.DOCKER_USERNAME}}
58+ password : ${{secrets.DOCKER_PASSWORD}}
59+ - name : " Install dependencies"
60+ run : |
61+ npm ci
62+ ci/run_dependencies.sh ${{ matrix.versions.weaviate }}
63+ - name : " Run tests without authentication tests"
64+ run : WEAVIATE_VERSION=${{ matrix.versions.weaviate }} npm test
65+ - name : " Transpile the package"
66+ run : npm run build
67+ - name : " Stop Weaviate"
68+ run : ci/stop_dependencies.sh ${{ matrix.versions.weaviate }}
69+
70+ tests-with-auth :
71+ needs : checks
72+ runs-on : ubuntu-latest
73+ strategy :
74+ fail-fast : false
75+ matrix :
76+ versions : [
77+ { node: "22.x", weaviate: $WEAVIATE_129}
4378 ]
4479 steps :
4580 - uses : actions/checkout@v3
@@ -64,16 +99,11 @@ jobs:
6499 AZURE_CLIENT_SECRET : ${{ secrets.AZURE_CLIENT_SECRET }}
65100 OKTA_CLIENT_SECRET : ${{ secrets.OKTA_CLIENT_SECRET }}
66101 run : WEAVIATE_VERSION=${{ matrix.versions.weaviate }} npm test
67- - name : " Run tests without authentication tests (for forks)"
68- if : ${{ github.event.pull_request.head.repo.fork }}
69- run : WEAVIATE_VERSION=${{ matrix.versions.weaviate }} npm test
70- - name : " Transpile the package"
71- run : npm run build
72102 - name : " Stop Weaviate"
73103 run : ci/stop_dependencies.sh ${{ matrix.versions.weaviate }}
74104
75105 publish :
76- needs : tests
106+ needs : [ tests-with-auth, tests-without-auth]
77107 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
78108 runs-on : ubuntu-latest
79109 permissions :
0 commit comments