88
99env :
1010 WEAVIATE_124 : 1.24.26
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-rc.1
11+ WEAVIATE_125 : 1.25.34
12+ WEAVIATE_126 : 1.26.17
13+ WEAVIATE_127 : 1.27.15
14+ WEAVIATE_128 : 1.28.11
15+ WEAVIATE_129 : 1.29.1
16+ WEAVIATE_130 : 1.30.0-rc.0-6b9a01c
17+
18+ concurrency :
19+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
20+ cancel-in-progress : true
1621
1722jobs :
1823 checks :
2934 npm run format:check
3035 npm run docs
3136
32- tests :
37+ tests-without-auth :
3338 needs : checks
3439 runs-on : ubuntu-latest
3540 strategy :
4146 { node: "22.x", weaviate: $WEAVIATE_126},
4247 { node: "22.x", weaviate: $WEAVIATE_127},
4348 { 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}
49+ { node: "22.x", weaviate: $WEAVIATE_129},
50+ { node: "18.x", weaviate: $WEAVIATE_130},
51+ { node: "20.x", weaviate: $WEAVIATE_130},
52+ { node: "22.x", weaviate: $WEAVIATE_130}
53+ ]
54+ steps :
55+ - uses : actions/checkout@v3
56+ - uses : actions/setup-node@v3
57+ with :
58+ node-version : ${{ matrix.versions.node }}
59+ - name : Login to Docker Hub
60+ if : ${{ !github.event.pull_request.head.repo.fork && github.triggering_actor != 'dependabot[bot]' }}
61+ uses : docker/login-action@v3
62+ with :
63+ username : ${{secrets.DOCKER_USERNAME}}
64+ password : ${{secrets.DOCKER_PASSWORD}}
65+ - name : " Install dependencies"
66+ run : |
67+ npm ci
68+ ci/run_dependencies.sh ${{ matrix.versions.weaviate }}
69+ - name : " Run tests without authentication tests"
70+ run : WEAVIATE_VERSION=${{ matrix.versions.weaviate }} npm test
71+ - name : " Transpile the package"
72+ run : npm run build
73+ - name : " Stop Weaviate"
74+ run : ci/stop_dependencies.sh ${{ matrix.versions.weaviate }}
75+
76+ tests-with-auth :
77+ needs : checks
78+ runs-on : ubuntu-latest
79+ strategy :
80+ fail-fast : false
81+ matrix :
82+ versions : [
83+ { node: "22.x", weaviate: $WEAVIATE_130}
4784 ]
4885 steps :
4986 - uses : actions/checkout@v3
@@ -68,16 +105,11 @@ jobs:
68105 AZURE_CLIENT_SECRET : ${{ secrets.AZURE_CLIENT_SECRET }}
69106 OKTA_CLIENT_SECRET : ${{ secrets.OKTA_CLIENT_SECRET }}
70107 run : WEAVIATE_VERSION=${{ matrix.versions.weaviate }} npm test
71- - name : " Run tests without authentication tests (for forks)"
72- if : ${{ github.event.pull_request.head.repo.fork }}
73- run : WEAVIATE_VERSION=${{ matrix.versions.weaviate }} npm test
74- - name : " Transpile the package"
75- run : npm run build
76108 - name : " Stop Weaviate"
77109 run : ci/stop_dependencies.sh ${{ matrix.versions.weaviate }}
78110
79111 publish :
80- needs : tests
112+ needs : [ tests-with-auth, tests-without-auth]
81113 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
82114 runs-on : ubuntu-latest
83115 permissions :
@@ -107,4 +139,4 @@ jobs:
107139 uses : softprops/action-gh-release@v1
108140 with :
109141 generate_release_notes : true
110- draft : true
142+ draft : true
0 commit comments