Skip to content

LA-76: Survey Buttons/Filter on dashboard #12703

LA-76: Survey Buttons/Filter on dashboard

LA-76: Survey Buttons/Filter on dashboard #12703

Workflow file for this run

# This workflow will prepare and test the frontend
name: LimeSurvey - Frontend - CI pipeline
# Triggers the workflow on push or pull request events on all branches
on:
pull_request:
push:
branches:
- '*'
- '**'
- 'dev/**'
- 'bug/**'
- 'feature/**'
- 'zoho/**'
jobs:
job_build_packages:
runs-on: ubuntu-20.04 # ubuntu runner hosted by Github
strategy:
matrix:
# Specify what version of nodejs you want to test
nodeJS-versions: ['10.16.3']
name: Build Frontend Packages
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Run composer
run: |
composer install -vvv
- name: Run yarn
run: |
yarn install
- name: Prepare nvm with Node ${{ matrix.nodeJS-versions }}
run: |
# Update
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
source ~/.nvm/nvm.sh
# Install Node.js
nvm install ${{ matrix.nodeJS-versions }}
nvm use ${{ matrix.nodeJS-versions }}
- name: Install adminbasics
run: |
cd ${{ github.workspace }}
yarn --cwd ./assets/packages/adminbasics
- name: Build adminbasics
run: |
cd ${{ github.workspace }}
yarn --cwd ./assets/packages/adminbasics build
# - name: Install adminsidepanel
# run: |
# cd ${{ github.workspace }}
# yarn --cwd ./assets/packages/adminsidepanel
# TODO: Enable this step, when its possible to build adminsidepanel again
# - name: Build adminsidepanel
# run: |
# cd ${{ github.workspace }}
# yarn --cwd ./assets/packages/adminsidepanel build
job_run_tests:
needs: [job_build_packages]
runs-on: ubuntu-20.04 # ubuntu runner hosted by Github
strategy:
matrix:
# Specify what version of nodejs you want to test
nodeJS-versions: ['10.16.3']
name: Run Frontend Tests
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Prepare nvm with Node ${{ matrix.nodeJS-versions }}
run: |
# Update
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
source ~/.nvm/nvm.sh
# Install Node.js
nvm install ${{ matrix.nodeJS-versions }}
nvm use ${{ matrix.nodeJS-versions }}
- name: Install adminbasics
run: |
cd ${{ github.workspace }}
yarn --cwd ./assets/packages/adminbasics
# - name: Install adminsidepanel
# run: |
# cd ${{ github.workspace }}
# yarn --cwd ./assets/packages/adminsidepanel
- name: Run Tests
run: |
cd ${{ github.workspace }}
yarn --cwd ./assets/packages/adminbasics run test
# yarn --cwd ./assets/packages/adminsidepanel run test