Adds Problem XBlock extracting from edx-platform repo #9
Workflow file for this run
This file contains hidden or 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: JavaScript Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| javascript-tests: | |
| name: Run JavaScript Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "npm" | |
| - name: Install Firefox 142.0 | |
| run: | | |
| sudo apt-get purge -y firefox | |
| wget "https://ftp.mozilla.org/pub/firefox/releases/142.0.1/linux-x86_64/en-US/firefox-142.0.1.tar.xz" -O firefox.tar.xz | |
| tar -xJf firefox.tar.xz | |
| sudo mv firefox /opt/firefox | |
| sudo ln -s /opt/firefox/firefox /usr/bin/firefox | |
| - name: Install Required System Packages | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libdbus-glib-1-2 libgtk-3-0 xvfb | |
| - name: Install npm dependencies | |
| run: npm ci | |
| - name: Run tests | |
| run: npm run test:ci |