Merge pull request #1475 from FZJ-INM1-BDA/staging #1209
This file contains 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: '[ci]' | |
on: | |
push: | |
# ignore changes to docs and mkdocs.yml | |
paths-ignore: | |
- 'docs/**' | |
- 'mkdocs.yml' | |
jobs: | |
# prettier: | |
# if: always() | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions/setup-node@v4 | |
# with: | |
# node-version: '16.x' | |
# - run: npx prettier -c ./src | |
lint: | |
if: always() | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 16.x for lint | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16.x' | |
- run: npm i | |
- run: npm run lint | |
frontend: | |
if: always() | |
runs-on: ubuntu-latest | |
env: | |
NODE_ENV: test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16.x | |
- run: npm i | |
- run: | | |
if [[ "$GITHUB_REF" = *hotfix* ]] || [[ "$GITHUB_REF" = refs/heads/staging ]] | |
then | |
export SIIBRA_API_ENDPOINTS=https://siibra-api-rc.apps.hbp.eu/v3_0 | |
node src/environments/parseEnv.js ./environment.ts | |
fi | |
npm run test-ci | |
backend: | |
if: always() | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- run: | | |
cd backend | |
echo "hello world" >> index.html | |
export PATH_TO_PUBLIC=$(pwd) | |
pip install -r requirements.txt | |
pip install pytest | |
pytest |