Dev: still test broken #55
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
# This workflow will prepare and test the frontend | |
name: LimeSurvey 5 unofficial - 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@v2 | |
- 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@v2 | |
- 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 | |