29
29
npm run format:check
30
30
npm run docs
31
31
32
- tests :
32
+ tests-without-auth :
33
33
needs : checks
34
34
runs-on : ubuntu-latest
35
35
strategy :
47
47
]
48
48
steps :
49
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}
78
+ ]
79
+ steps :
80
+ - uses : actions/checkout@v3
50
81
- uses : actions/setup-node@v3
51
82
with :
52
83
node-version : ${{ matrix.versions.node }}
@@ -68,16 +99,11 @@ jobs:
68
99
AZURE_CLIENT_SECRET : ${{ secrets.AZURE_CLIENT_SECRET }}
69
100
OKTA_CLIENT_SECRET : ${{ secrets.OKTA_CLIENT_SECRET }}
70
101
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
76
102
- name : " Stop Weaviate"
77
103
run : ci/stop_dependencies.sh ${{ matrix.versions.weaviate }}
78
104
79
105
publish :
80
- needs : tests
106
+ needs : [ tests-with-auth, tests-without-auth]
81
107
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
82
108
runs-on : ubuntu-latest
83
109
permissions :
0 commit comments