Skip to content
Snippets Groups Projects
Commit 0edbf0d4 authored by Xiao Gui's avatar Xiao Gui
Browse files

fix: target rc in case of hotfix

parent 37f9ce07
No related branches found
No related tags found
No related merge requests found
...@@ -26,38 +26,37 @@ jobs: ...@@ -26,38 +26,37 @@ jobs:
if: always() if: always()
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
env: env:
NODE_ENV: test NODE_ENV: test
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js 16.x
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: ${{ matrix.node-version }} node-version: 16.x
- run: npm i - 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: backend:
if: always() if: always()
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
env: env:
NODE_ENV: test NODE_ENV: test
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js 16.x
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: ${{ matrix.node-version }} node-version: 16.x
- run: | - run: |
cd deploy cd deploy
npm i npm i
......
...@@ -3,7 +3,7 @@ import { SAPI } from "src/atlasComponents/sapi/sapi.service" ...@@ -3,7 +3,7 @@ import { SAPI } from "src/atlasComponents/sapi/sapi.service"
import { SapiParcellationModel } from "src/atlasComponents/sapi/type" import { SapiParcellationModel } from "src/atlasComponents/sapi/type"
import { getTraverseFunctions } from "./parcellationVersion.pipe" import { getTraverseFunctions } from "./parcellationVersion.pipe"
describe("parcellationVersion.pipe.ts", () => { describe(`parcellationVersion.pipe.ts (endpoint at ${SAPI.bsEndpoint})`, () => {
describe("getTraverseFunctions", () => { describe("getTraverseFunctions", () => {
let julichBrainParcellations: SapiParcellationModel[] = [] let julichBrainParcellations: SapiParcellationModel[] = []
beforeAll(async () => { beforeAll(async () => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment