diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78d9a7e7b59248e5b280835a47c7860b579061e2..43cbedb123aed70e47a75e746b2181ff0261c3a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,38 +26,37 @@ jobs: if: always() runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x] - env: NODE_ENV: test steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js 16.x uses: actions/setup-node@v1 with: - node-version: ${{ matrix.node-version }} + node-version: 16.x - run: npm i - - run: npm run test-ci + - run: | + if [[ "$GITHUB_REF" = *hotfix* ]] + then + export BS_REST_URL=https://siibra-api-rc.apps.hbp.eu/v2_0 + echo 'export const environment = { "BS_REST_URL": "https://siibra-api-rc.apps.hbp.eu/v2_0" }' > src/environments/environment.common.ts + fi + npm run test-ci backend: if: always() runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x] env: NODE_ENV: test steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js 16.x uses: actions/setup-node@v1 with: - node-version: ${{ matrix.node-version }} + node-version: 16.x - run: | cd deploy npm i diff --git a/src/atlasComponents/sapiViews/core/parcellation/parcellationVersion.pipe.spec.ts b/src/atlasComponents/sapiViews/core/parcellation/parcellationVersion.pipe.spec.ts index 5a7eb1fc32405cd1a4f9128cfda54c018eb45766..77df043bb37ed7ffb87cad72d422dda777db33d0 100644 --- a/src/atlasComponents/sapiViews/core/parcellation/parcellationVersion.pipe.spec.ts +++ b/src/atlasComponents/sapiViews/core/parcellation/parcellationVersion.pipe.spec.ts @@ -3,7 +3,7 @@ import { SAPI } from "src/atlasComponents/sapi/sapi.service" import { SapiParcellationModel } from "src/atlasComponents/sapi/type" import { getTraverseFunctions } from "./parcellationVersion.pipe" -describe("parcellationVersion.pipe.ts", () => { +describe(`parcellationVersion.pipe.ts (endpoint at ${SAPI.bsEndpoint})`, () => { describe("getTraverseFunctions", () => { let julichBrainParcellations: SapiParcellationModel[] = [] beforeAll(async () => {