build(deps-dev): bump typescript-eslint from 8.46.2 to 8.50.0 #2872
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: lint-test-build | |
| on: | |
| push: | |
| branches: [develop] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| download-datasets: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v5 | |
| with: | |
| path: datasets | |
| key: datasets-${{ hashFiles('datasets/**') }} | |
| - run: datasets/populate | |
| lint-most: | |
| needs: [build-cli, build-lib, build-lib-node, build-lib-web, build-server, build-webapp] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm --workspaces run build | |
| - run: npm run lint | |
| lint-docs-examples: | |
| needs: [build-lib, build-lib-node, build-server] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm --workspace={discojs,discojs-node,server} run build | |
| - run: npm run lint | |
| working-directory: docs/examples | |
| build-lib: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm --workspace=discojs run build | |
| build-lib-node: | |
| needs: build-lib | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm --workspace=discojs-node run build | |
| build-lib-web: | |
| needs: build-lib | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm run --workspace=discojs-web build | |
| build-server: | |
| needs: [build-lib, build-lib-node] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm run --workspace=server build | |
| build-server-docker: | |
| needs: build-server | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: docker/setup-buildx-action@v3 | |
| with: | |
| install: true | |
| - run: docker build . | |
| - run: | | |
| docker build --quiet --load . | \ | |
| xargs docker run --detach --publish 8080:8080 | |
| timeout=120 | |
| while ! curl http://localhost:8080 | |
| do | |
| [ $timeout -eq 0 ] && exit 1 | |
| sleep 1 | |
| timeout=$((timeout - 1)) | |
| done | |
| build-cli: | |
| needs: [build-lib, build-lib-node, build-server] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm run --workspace=cli build | |
| build-webapp: | |
| needs: [build-lib, build-lib-web] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm --workspace=webapp run build | |
| build-docs-examples: | |
| needs: [build-lib, build-lib-node, build-server] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm --workspace={discojs,discojs-node,server} run build | |
| - run: npm run build | |
| working-directory: docs/examples | |
| test-most: | |
| needs: [build-lib, build-lib-node, build-lib-web, build-server, download-datasets] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v5 | |
| with: | |
| path: datasets | |
| key: datasets-${{ hashFiles('datasets/**') }} | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm --workspace={discojs,discojs-{node,web},server} run build | |
| - run: npx vitest --run | |
| test-webapp: | |
| needs: [build-lib, build-lib-web, download-datasets] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v5 | |
| with: | |
| path: datasets | |
| key: datasets-${{ hashFiles('datasets/**') }} | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm --workspace={discojs,discojs-web} run build | |
| - run: npm --workspace=webapp run test:unit | |
| - uses: cypress-io/github-action@v6 | |
| with: | |
| working-directory: webapp | |
| install: false | |
| start: npx vite --mode test --port 1351 | |
| test-cli: | |
| needs: [build-lib, build-lib-node, build-server, download-datasets] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v5 | |
| with: | |
| path: datasets | |
| key: datasets-${{ hashFiles('datasets/**') }} | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm --workspace={discojs,discojs-node,server} run build | |
| - run: npm --workspace=cli start -- -t cifar10 -u 3 -e 1 -r 1 | |
| test-docs-examples: | |
| needs: [build-lib, build-lib-node, build-server, download-datasets] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v5 | |
| with: | |
| path: datasets | |
| key: datasets-${{ hashFiles('datasets/**') }} | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm --workspace={discojs,discojs-node,server} run build | |
| - run: npm run test | |
| working-directory: docs/examples |