|
15 | 15 | - .github/workflows/lint-rust/action.yml |
16 | 16 | - .github/workflows/install-valkey/action.yml |
17 | 17 | - .github/json_matrices/build-matrix.json |
| 18 | + - .github/workflows/start-self-hosted-runner/action.yml |
18 | 19 | pull_request: |
19 | 20 | paths: |
20 | 21 | - glide-core/src/** |
|
28 | 29 | - .github/workflows/lint-rust/action.yml |
29 | 30 | - .github/workflows/install-valkey/action.yml |
30 | 31 | - .github/json_matrices/build-matrix.json |
| 32 | + - .github/workflows/start-self-hosted-runner/action.yml |
31 | 33 | workflow_dispatch: |
32 | 34 |
|
33 | 35 | concurrency: |
|
39 | 41 |
|
40 | 42 | jobs: |
41 | 43 | load-engine-matrix: |
42 | | - runs-on: ubuntu-latest |
43 | | - outputs: |
44 | | - matrix: ${{ steps.load-engine-matrix.outputs.matrix }} |
45 | | - steps: |
46 | | - - name: Checkout |
47 | | - uses: actions/checkout@v4 |
48 | | - |
49 | | - - name: Load the engine matrix |
50 | | - id: load-engine-matrix |
51 | | - shell: bash |
52 | | - run: echo "matrix=$(jq -c . < .github/json_matrices/engine-matrix.json)" >> $GITHUB_OUTPUT |
| 44 | + runs-on: ubuntu-latest |
| 45 | + outputs: |
| 46 | + matrix: ${{ steps.load-engine-matrix.outputs.matrix }} |
| 47 | + steps: |
| 48 | + - name: Checkout |
| 49 | + uses: actions/checkout@v4 |
| 50 | + |
| 51 | + - name: Load the engine matrix |
| 52 | + id: load-engine-matrix |
| 53 | + shell: bash |
| 54 | + run: echo "matrix=$(jq -c . < .github/json_matrices/engine-matrix.json)" >> $GITHUB_OUTPUT |
53 | 55 |
|
54 | 56 | test-ubuntu-latest: |
55 | 57 | runs-on: ubuntu-latest |
@@ -84,18 +86,18 @@ jobs: |
84 | 86 |
|
85 | 87 | - name: test hybrid node modules - commonjs |
86 | 88 | run: | |
87 | | - npm install --package-lock-only |
88 | | - npm ci |
89 | | - npm run build-and-test |
| 89 | + npm install --package-lock-only |
| 90 | + npm ci |
| 91 | + npm run build-and-test |
90 | 92 | working-directory: ./node/hybrid-node-tests/commonjs-test |
91 | 93 | env: |
92 | 94 | JEST_HTML_REPORTER_OUTPUT_PATH: test-report-commonjs.html |
93 | 95 |
|
94 | 96 | - name: test hybrid node modules - ecma |
95 | 97 | run: | |
96 | | - npm install --package-lock-only |
97 | | - npm ci |
98 | | - npm run build-and-test |
| 98 | + npm install --package-lock-only |
| 99 | + npm ci |
| 100 | + npm run build-and-test |
99 | 101 | working-directory: ./node/hybrid-node-tests/ecmascript-test |
100 | 102 | env: |
101 | 103 | JEST_HTML_REPORTER_OUTPUT_PATH: test-report-ecma.html |
@@ -269,3 +271,45 @@ jobs: |
269 | 271 | node/test-report*.html |
270 | 272 | utils/clusters/** |
271 | 273 | benchmarks/results/** |
| 274 | +
|
| 275 | + test-modules: |
| 276 | + if: (github.repository_owner == 'valkey-io' && github.event_name == 'workflow_dispatch') || github.event.pull_request.head.repo.owner.login == 'valkey-io' |
| 277 | + environment: AWS_ACTIONS |
| 278 | + name: Running Module Tests |
| 279 | + runs-on: [self-hosted, linux, ARM64] |
| 280 | + timeout-minutes: 15 |
| 281 | + |
| 282 | + steps: |
| 283 | + - name: Setup self-hosted runner access |
| 284 | + run: sudo chown -R $USER:$USER /home/ubuntu/actions-runner/_work/valkey-glide |
| 285 | + |
| 286 | + - uses: actions/checkout@v4 |
| 287 | + with: |
| 288 | + submodules: recursive |
| 289 | + |
| 290 | + - name: Use Node.js 18.x |
| 291 | + uses: actions/setup-node@v4 |
| 292 | + with: |
| 293 | + node-version: 18.x |
| 294 | + |
| 295 | + - name: Build Node wrapper |
| 296 | + uses: ./.github/workflows/build-node-wrapper |
| 297 | + with: |
| 298 | + os: ubuntu |
| 299 | + named_os: linux |
| 300 | + arch: arm64 |
| 301 | + target: aarch64-unknown-linux-gnu |
| 302 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 303 | + |
| 304 | + - name: test |
| 305 | + run: npm run test-modules -- --cluster-endpoints=${{ secrets.MEMDB_MODULES_ENDPOINT }} --tls=true |
| 306 | + working-directory: ./node |
| 307 | + |
| 308 | + - name: Upload test reports |
| 309 | + if: always() |
| 310 | + continue-on-error: true |
| 311 | + uses: actions/upload-artifact@v4 |
| 312 | + with: |
| 313 | + name: test-report-node-modules-ubuntu |
| 314 | + path: | |
| 315 | + node/test-report*.html |
0 commit comments